Fix HTML5 key events
This commit is contained in:
parent
4e0643a51c
commit
c445ba29aa
@ -497,9 +497,9 @@ void OS_JavaScript::initialize(const VideoMode &p_desired, int p_video_driver, i
|
||||
SET_EM_CALLBACK("#canvas", touchmove, _touchmove_callback)
|
||||
SET_EM_CALLBACK("#canvas", touchend, _touchpress_callback)
|
||||
SET_EM_CALLBACK("#canvas", touchcancel, _touchpress_callback)
|
||||
SET_EM_CALLBACK("#canvas", keydown, _keydown_callback)
|
||||
SET_EM_CALLBACK("#canvas", keypress, _keypress_callback)
|
||||
SET_EM_CALLBACK("#canvas", keyup, _keyup_callback)
|
||||
SET_EM_CALLBACK("#window", keydown, _keydown_callback)
|
||||
SET_EM_CALLBACK("#window", keypress, _keypress_callback)
|
||||
SET_EM_CALLBACK("#window", keyup, _keyup_callback)
|
||||
SET_EM_CALLBACK(NULL, resize, _browser_resize_callback)
|
||||
SET_EM_CALLBACK(NULL, fullscreenchange, _fullscreen_change_callback)
|
||||
SET_EM_CALLBACK_NODATA(gamepadconnected, joy_callback_func)
|
||||
|
Loading…
Reference in New Issue
Block a user