Pressing several laptop buttons makes it crash

Discussion about Irrlicht's Java wrapper
Post Reply
Pyritie
Posts: 120
Joined: Fri Jan 16, 2009 12:59 pm
Contact:

Pressing several laptop buttons makes it crash

Post by Pyritie »

I'm using a laptop, and whenever I press any of the laptop-specific keys (such as these) I get this:

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)
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
Hive Workshop | deviantART

I've moved to Ogre.
Post Reply