diff options
| author | ailurux <ailurux@noreply.codeberg.org> | 2025-03-19 04:25:20 +0000 |
|---|---|---|
| committer | cooljqln <cooljqln@noreply.codeberg.org> | 2025-03-19 04:25:20 +0000 |
| commit | c9ce88a457c9ed7124709a667d202a666f72bffa (patch) | |
| tree | 681cba582d4e18c743029cb72ea542eee23e9907 /luals-stubs | |
| parent | 95dd0ddec52a25a57e367e5568ac97f8e3f0d312 (diff) | |
| download | tangara-fw-c9ce88a457c9ed7124709a667d202a666f72bffa.tar.gz | |
ailurux/button-media-controls (#264)
Splits the control scheme into separate schemes for the side buttons and touchwheel, allowing them to be configured independently of each other. At least one input must be used for navigation, and there are guards to prevent locking oneself out of any input. If the input scheme is invalid, a pop up will show alerting the user.
Different behaviours can be bound to the side buttons for when the device is locked or unlocked. This PR also adds a mode for these buttons that controls media playback (prev/next on up/down, pressing both buttons toggles play/pause).
There are some changes to the way inputs handle locking. Rather than the input devices tracking the current locked mode, different input devices are created on lock depending on the mode that is configured.
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/264
Co-authored-by: ailurux <ailurux@noreply.codeberg.org>
Co-committed-by: ailurux <ailurux@noreply.codeberg.org>
Diffstat (limited to 'luals-stubs')
| -rw-r--r-- | luals-stubs/controls.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/luals-stubs/controls.lua b/luals-stubs/controls.lua index a95bc64f..0a8f4baa 100644 --- a/luals-stubs/controls.lua +++ b/luals-stubs/controls.lua @@ -8,7 +8,9 @@ --- controls. These controls include the touchwheel, the lock switch, and the --- side buttons. --- @class controls ---- @field scheme Property The currently configured control scheme +--- @field wheel_scheme Property The currently configured control scheme for the touchwheel +--- @field button_scheme Property The currently configured control scheme for the side buttons +--- @field locked_scheme Property The currently configured control scheme for the side buttons when locked --- @field scroll_sensitivity Property How much rotational motion is required on the touchwheel per scroll tick. --- @field lock_switch Property The current state of the device's lock switch. --- @field hooks funtion Returns a table containing the inputs and actions associated with the current control scheme. |
