mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
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:
commit
ec1cf46ec7
7 changed files with 210 additions and 65 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue