Pressing several laptop buttons makes it crash
Posted: Tue Jan 27, 2009 12:33 pm
I'm using a laptop, and whenever I press any of the laptop-specific keys (such as these) I get this:
The 179 is just for the play/pause key.
Could you (the jirr guy) please either add more enums for these keys or just use an "unknown key" one so that it doesn't throw this error?
I don't need to use these keys specifically, but it'd be nice if my program didn't crash whenever I try to turn down the volume or something. :3
Code: Select all
java.lang.IllegalArgumentException: No enum class net.sf.jirr.EKEY_CODE with value 179
at net.sf.jirr.EKEY_CODE.swigToEnum(EKEY_CODE.java:168)
at net.sf.jirr.SEvent.getKeyInputKey(SEvent.java:49)
at pyritie.icar.game.core.EventReceiver.OnEvent(EventReceiver.java:55)
at net.sf.jirr.JirrJNI.SwigDirector_IEventReceiver_OnEvent(JirrJNI.java:3379)
at net.sf.jirr.JirrJNI.IrrlichtDevice_run(Native Method)
at net.sf.jirr.IrrlichtDevice.run(IrrlichtDevice.java:41)
at pyritie.icar.game.core.Viewer.run(Viewer.java:86)
at pyritie.icar.game.core.Main.main(Main.java:26)
Could you (the jirr guy) please either add more enums for these keys or just use an "unknown key" one so that it doesn't throw this error?
I don't need to use these keys specifically, but it'd be nice if my program didn't crash whenever I try to turn down the volume or something. :3