Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading keyboard/joystick input
#4
britlion Wrote:If you are running with standard ROM and interrupts on, you can of course always read the last keypress from the system variables. I did that with Berksman, so the last direction you chose is the one you move when you get to the corner. Even if you don't get there for a couple of seconds - press up, and let go of the keys, and you'll still turn upwards. Lastkey is a system variable described in the sinclair manual.

That's did the trick. Well, that and reorganizing when and how much times subroutines are called. I'm leaving a beta attached to this post: Q-A-O-P-SPACE use LAST K system variable and SInclair II (6-7-8-9-0) use MultiKeys, so both keyscan methods can be compared.

Cheers


Attached Files
.tap   o-puzzattack_v007.tap (Size: 11.59 KB / Downloads: 55)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)