PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

EasyCE comment

Hi...

People has been reporting that there is a button problem with my Spectrum emulator, PocketClive. Sometimes the buttons does not seem to work. The problem is a misinterpretation on how EasyCE works; by sharing this information with you hopefully you will not run into the same problem.

The "problem" is that EasyCE has its own "key-is-pressed" functionality, i.e. when using the button functions, e.g. buttonA() you do not receive the current status of the button. When the user presses e.g. button A and your program calls buttonA() it will return TRUE (indicating that the button is pressed), _but_ then button A is "released" in software and a new call to the function buttonA() returns FALSE even if the user still is pressing the button. This has the effect in my emulator that the Spectrum game being played sometimes does not get the chance to sense that the fire button has been pressed. This is probably not a "problem" in games being programmed specifically for the PocketPC.

/Anders

You are absolutely right. This asks for new functions, like 'keyAdown()' to complement the pressed functions. I have a lot of stuff like this on my HD, in various versions of EasyCE. I hope to merge this stuff some day and then I will release 'EasyCE 1.1' or whatever. This will also feature directory stuff (for making your app directory independent), my bit operations macro's and stuff like that. I'll keep you guys informed.
Sounds great!

/Anders