Linux keymapping fix
BlitzMax Forums/BlitzMax Module Tweaks/Linux keymapping fix
| ||
While playing with miniB3D on Linux, I found that +/- wasn't working (neither is the mouse stuff, but I'll leave that for another post). The fix : edit system.linux.c the getxkey function near the bottom, change these two lines : if (key=='-') return 189; //minus if (key=='=') return 187; //equals 189 and 187 seem to be the correct values. Haven't tested the other keys for correctness... perhaps we need a full test proggy or something. Enjoy :o) |
| ||
Am curious, is a series of "if" statements as efficient as a "switch" statement? |