Just tried this :
function keyboardHandler(eventType, character, keycode, modifiers)
if keycode == eKeyEscape then
Which is a simpler version of what you wrote above ... Still not working
The "keyEvent" is not recognised in 4.01 even though it says that it should work from 3.6
This it he only script that I have btw. I deleted the other ones for testing purposes
Here is the Log file :
2:02:45 PM: Engine Version: 4.0.1 (Build 1173 from Build date: Aug 12 2014)
2:02:45 PM: Time needed for preloading game: 14 msec
2:02:45 PM: Initializing graphics interface. Surface size: 1920x1080, render size: 1920x1080
2:02:45 PM: Using Framebuffer with texture.
2:02:46 PM: red, green, blue, alpha, depth size: , doublebuffer , accelerated
2:02:46 PM: Serialization finished. Needed time: 33 ms
2:02:46 PM: SetupParents finished. Needed time: 1 ms
2:02:46 PM: SortLinks finished. Needed time: 0 ms
2:02:46 PM: Interfaces loaded. Needed time: 20 ms
2:02:46 PM: Warning: Unsupported event 'keyEvent'.
2:02:46 PM: [string "Script0"]:11: Failed to execute command registerEventHandler
2:02:46 PM: stack traceback:
[string "Script0"]:14: in function
[C]: in function 'registerEventHandler'
[string "Script0"]:11: in function
[C]: in function 'xpcall'
[string "Script0"]:1: in main chunk