Mouse input engine handlers

This commit is contained in:
uramer 2024-02-10 22:53:29 +01:00
parent 3301ebb2cb
commit c68dee214e
4 changed files with 44 additions and 2 deletions

View file

@ -124,6 +124,15 @@ Engine handler is a function defined by a script, that can be called by the engi
* - onTouchMove(touchEvent)
- | A finger moved on a touch device.
| `Touch event <openmw_input.html##(TouchEvent)>`_.
* - onMouseButtonPress(button)
- | A mouse button was pressed
| Button id
* - onMouseButtonRelease(button)
- | A mouse button was released
| Button id
* - onMouseWheel(vertical, horizontal)
- | Mouse wheel was scrolled
| vertical and horizontal mouse wheel change
* - | onConsoleCommand(
| mode, command, selectedObject)
- | User entered `command` in in-game console. Called if either