Merge branch 'lua_keybinds' into 'master'

Lua Implement mouse input engine handlers, improve inputBinding renderer

See merge request OpenMW/openmw!3855
This commit is contained in:
psi29a 2024-02-14 08:30:38 +00:00
commit ec1cf46ec7
7 changed files with 210 additions and 65 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

View file

@ -143,10 +143,9 @@ Table with the following fields:
* - name
- type (default)
- description
* - type
- 'keyboardPress', 'keyboardHold'
- The type of input that's allowed to be bound
* - key
- #string
- Key of the action or trigger to which the input is bound
* - type
- 'action', 'trigger'
- Type of the key