I'm now regretting the behaviour of keypressing polling. Namely, that
it isn't possible to distinguish between a real new keypress and one
due to key repeat.

Currently, for each key, there are 2 bits in the keyval array:
bit 0: key is currently held down
bit 1: new keypress/key repeat

How about changing this, so that there's a 3rd bit which is on
exclusively for new key presses, while changing bit 2 to key repeat
only. Then existing uses "keyval(x) > 0" and "keyval(x) > 1" will be
perfectly fine, and you can use "keyval(x) > 3" if you don't want
repeating.

I want to change this for scripts as well (actually the only reason),
though for extra safety, if anyone uses "keyval(x) = 3" or something,
current games could call a version of keyval which merges bits 1 and 2
together.
Objections?

TMC
_______________________________________________
ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to