I'm working on adding joystick support to Transball, and the easy way (below) seems very wasteful of CPU cycles (specially, since looking at the C-BIOS implementation of the GTSTCK function here ( https://sourceforge.net/p/cbios/cbios/ci/master/tree/src/mai... ), I see that this is not a quick routine at all!
;; first we check the keyboard: xor a call GTSTCK cp 0 call z, checkJoystick ;; if keyboard is not pressed, then check joystick ;; ... do whatever we want to do with the input ret checkJoystick: inc a call GTSTCK ret
Is there a common better way in which people usually do this?
Thanks in advance!
Login sesión o register para postear comentarios