| Post Your Message | |
| |
| Previous Messages | Posted By
JamesC on 2008-03-27 17:20:22
| Re: Shiftkey detecting
PEEK(1347) is what you seek:
0 for no control keys 1 for Shift (either left or right) 2 for Commodore key 4 for Control key
The key has to be pressed when the PEEK is evaluated, for it to be seen this way.
|
|
Posted By
Gaia on 2008-03-27 11:07:12
| Re: Shiftkey detecting
I always used $C6 and $0543. Something like:
10 PRINTPEEK(DEC("C6")),PEEK(DEC("543")) 20 RUN
|
|
Posted By
SVS on 2008-03-27 10:55:12
| Shiftkey detecting
How can I detect from BASIC if a key was pressed together with SHIFT (for example SHIFT + CRSR-UP)? There is a RAM location around $05xx (*) that stores the last pattern of SHIFT, CTRL, CBM but it seems not to work under BASIC. Any tip?
S\_/S
(*) Sorry for not complete info, but I'm at job place, and I haven't +4 docs here
|
|
| |
Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon |