Linux keymapping fix

BlitzMax Forums/BlitzMax Module Tweaks/Linux keymapping fix

Brucey(Posted 2007) [#1]
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)


Brucey(Posted 2007) [#2]
Am curious, is a series of "if" statements as efficient as a "switch" statement?