Commit graph

41 commits

Author SHA1 Message Date
Aidan MacDonald
a0a59ab610 Fix locked context fallthrough
Enabling locked actions for all softlock targets accidentally
broke keylock on touchscreens because the generic touchscreen
keymap was missed. Trying to lookup CONTEXT_WPS|CONTEXT_LOCKED
returned the mapping for CONTEXT_STD because the locked version
wasn't explicitly handled.

But on almost all cases, a context's keymap does not change when
the screen is locked. It makes more sense to mask out the locked
flag and only check for it where needed.

Change-Id: I65cda2de82950d272d4394fd772286699e7c3779
2023-03-18 17:47:19 +00:00
William Wilgus
6ebec601f9 [Feature/Bugfix] keyremap add Context flags
Add context flags to keyremap
CONTEXT_LOCKED
CONTEXT_REMOTE
CONTEXT_REMOTE_LOCKED

--CONTEXT_PLUGIN-- Removed -- Plugins need a custom action list
supplied and a method of supplying them

Change-Id: I5201d275ad0ab6130c2d05d5afb0c450f5c1746c
2022-12-31 16:12:18 -05:00
roman.artiukhin
d520dcbfbb Exit Pitchscreen on BUTTON_HOME for Sansa Clip
ToggleMode is remapped to BUTTON_SELECT
Reset is remapped to Long BUTTON_HOME or Long BUTTON_SELECT (avoids accidental reset by pressing BUTTON_SELECT)

Change-Id: I6fc4050c66db2d7db7ec899f9c83b70754fef9df
2022-12-13 20:24:37 -05:00
Christian Soffke
193ebb5a36 Enable access to Shortcuts Menu from QuickScreen
Offers a quick way of switching to the Shortcuts Menu
by pressing the 'context menu' button while QuickScreen
is active (e.g. long press Select on iPods and some other
players)

Change-Id: I38292c7070cf093a81e1db688809b1f0d6a8764a
2022-10-25 03:26:51 +02:00
Aidan MacDonald
0fbaeed250 Remove ACTION_SETTINGS_RESET
This action has never been used since its introduction
in 2006. There's no real need for it, as it's possible
to reset settings from the context menu.

Change-Id: I6b357ad1a2e19a9b631ee3055e158492570479e3
2022-01-16 23:58:30 +00:00
Igor B. Poretsky
30fb53d47f Enabled hotkey for Sansa Clip players
Change-Id: Ic0fb331415bf0cc0fce5916befce64f4a41c46ee
2020-07-14 12:42:16 +00:00
William Wilgus
8db6d2004a Fix FMS Volume-long press Up and Down button actions for SANSA CLIP derivatives
When long pressing PLAY/PAUSE and FM_MODE on devices that use the clip keymap
 the volume changes in addition to toggling PLAY/PAUSE and SCAN/SEEK,this patch
 removes the volume functionality as these devices provide dedicated volume
 buttons

Change-Id: I3ab5af6da07900417c31c7a1036343b32b950e4e
2018-06-05 18:07:18 +02:00
Szymon Dziok
4c6939fc3d Correct some file permissions.
Change-Id: I4a092a19d6a9c66dfeb2777c9655aa4b19d11e16
2014-09-08 16:04:39 +02:00
Amaury Pouly
bc3a079522 clip+/zip: add FMS soft lock action
Change-Id: Iba5cb8b29ad06080d04105d6f9ef2c62e81d4f36
Reviewed-on: http://gerrit.rockbox.org/491
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2013-06-29 11:39:35 +02:00
Michael Giacomelli
f6d088c232 Clip radio keymap update by Shiloh Hawley and myself.
Makes FM radio keys consistent with the updated Clip keymap in the rest of rockbox.  Home now goes to the main menu, power stops the radio, and several other keys are a little more obvious.

Change-Id: Iaab207acf936820d5602ae1ce4ffbbe30bf7877e
2012-11-25 22:08:11 +01:00
Michael Giacomelli
6b66b882ec Commit FS#12288 - Sansa Clip+: "Home" in the main menu to WPS/Radio.
Author:  Akio Idehara

Change the keymap for all Sandisk Clip series players so that pressing home in
the main menu will return to the last viewed of either the WPS or the radio
screen.

Change-Id: Id890bf3593a9e6313304c9f7bb3ceb9a36ea6f33
2012-02-25 15:20:54 -05:00
Michael Giacomelli
8125877f60 Enable leaving the quickscreen with Select as the manual currently states should be possible.
Change-Id: I7cb8be9e913722cdf4ffff3db70b11c9f17f8385
2012-02-24 16:56:06 -05:00
Teruaki Kawashima
4fd775f7f0 cahnge button mapping in list cotext so that it ignores button release.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28704 a1c6a512-1295-4272-9138-f99709370657
2010-11-29 11:28:53 +00:00
Rafaël Carré
5cc11a1914 Clip WPS keymap: move pitchscreen to long up
Make users happy, as now short down does nothing (but bring backlight on)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27982 a1c6a512-1295-4272-9138-f99709370657
2010-09-02 07:50:01 +00:00
Marianne Arnold
032502182b Clip keymap: the pitchscreen action should only hit on button release (short press) instead of every button press which made it impossible to get to the hotkey action (long press of the same button) after r27897. Reported in IRC.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27912 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 09:00:19 +00:00
Rafaël Carré
0e19e3f859 Clip keymap : move pitchscreen to short submenu in wps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27897 a1c6a512-1295-4272-9138-f99709370657
2010-08-26 19:52:19 +00:00
Rafaël Carré
cefd1856af ACTION_FM_QUICKSCREEN is unused
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26944 a1c6a512-1295-4272-9138-f99709370657
2010-06-18 22:42:40 +00:00
Rafaël Carré
b6a1ac9837 clip recording keymap changes, thanks to dfkt
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26943 a1c6a512-1295-4272-9138-f99709370657
2010-06-18 22:42:35 +00:00
Rafaël Carré
94f18b1f9f clip+ keymap: revert r26396
software hold is now on home+select and quickscreen on long home like on
other clips

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26938 a1c6a512-1295-4272-9138-f99709370657
2010-06-18 20:03:39 +00:00
Michael Giacomelli
be0aa25aba Change the software hold button combo from select + home to just holding home. This is both easier to do on such a small player and more consistent with the OF. Quickscreen is now select + home. Update the manual to reflect this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26396 a1c6a512-1295-4272-9138-f99709370657
2010-05-29 21:46:14 +00:00
Jeffrey Goode
d5e6bc7a8c FS#11081 - Hotkey patch. Many targets supported, but some keymaps need work before they can be switched on
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25414 a1c6a512-1295-4272-9138-f99709370657
2010-04-01 03:14:44 +00:00
Rafaël Carré
b545946422 Clip: enable recording keymap when needed (forgotten in r25390)
The keymap of recscreen needs serious work, and apparently there are
other bugs in the settings keymap.
See conversation at http://www.rockbox.org/irc/log-20100331#03:51:25

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25406 a1c6a512-1295-4272-9138-f99709370657
2010-03-31 02:58:38 +00:00
Rafaël Carré
ed0c5edd62 as3525v2 : recording (FM only, no microphone yet)
Add HAVE_AS3543 config define to differentiate the bits changed since as3514/as3517
Enable recording on Fuzev2/Clipv2/Clip+, although it was tested on Clip+ only

Note: storage is still read-only so I tested by listening to headphones loopback and watching the recording level in recscreen

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25390 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 22:26:58 +00:00
Rafaël Carré
7379718624 Clip+: arbitrary combo (home+select) for button lock
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25293 a1c6a512-1295-4272-9138-f99709370657
2010-03-22 16:31:17 +00:00
Thomas Martitz
68169026e5 Quickscreen for the radio screen. I added a keymap for almost all targets. I couldn't find a nice one (i.e. one that's consistent with the wps/menu quickscreen combo) for iaudio m3, ondavx747 and the gogears.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24795 a1c6a512-1295-4272-9138-f99709370657
2010-02-20 20:53:13 +00:00
Michael Chicoine
7065c0fc6d Fix FS#10997 - Clipv1 Quickscreen - left button cancels instead of toggling shuffle
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24593 a1c6a512-1295-4272-9138-f99709370657
2010-02-11 13:26:35 +00:00
Tomer Shalev
4f3d7b5bcb USB HID: Use different context for each mode; Use constant for each action;
Rework keymaps

This commit makes the code neater and more readable. It makes it easier to
modify keymap assignments and new keypad modes.
Some platforms had their keypad mappings reworked.
The manual is updated to reflect all these changes.
H10 remote control mapping dropped.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23219 a1c6a512-1295-4272-9138-f99709370657
2009-10-17 05:39:54 +00:00
Tomer Shalev
0c379b4b2e Add USB HID mouse support for H10
- Protect mouse keymaps with #ifdef HAVE_USB_HID_MOUSE
- Add preliminary support for remote mouse mode in iPods, pending P#10623
- Use ACTION_USB_HID_MOUSE_WHEEL_SCROLL_UP/DOWN instead of standard INC/DEC


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22940 a1c6a512-1295-4272-9138-f99709370657
2009-10-05 06:42:39 +00:00
Tomer Shalev
8c5141b32e Commit "FS#10468 - USB HID: Show keypad mode on screen"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22852 a1c6a512-1295-4272-9138-f99709370657
2009-09-30 10:06:04 +00:00
Thomas Martitz
e454a39852 Quickscreen: 4th item
This adds a 4th top item to the quickscreen. It's as configurable as the existing three items.
This patch goes along with optimisations for small screens for better displaying of all four items. 14px font is very usable on a 64px height display for example.
Left and Top items go through the items in the opposite direction, so that you can mirror a setting and toggle through it in both directions.
Default item is party mode, as it's target independant.

Flyspray: FS#9706

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22532 a1c6a512-1295-4272-9138-f99709370657
2009-08-29 14:42:03 +00:00
Thomas Martitz
5c9fe52629 Commit part of FS#9873 - Utilise buttons for playlisting
It adds a shortcut (combo or button) to directly go from the wps to the playlist viewer. The combos could possibly be improved on some targets, but I tried to keep a tad bit of consistency (was hardly possible).
I also added a corresponding touchscreen region and adapted cabbiev2.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22003 a1c6a512-1295-4272-9138-f99709370657
2009-07-22 22:10:25 +00:00
Jonathan Gordon
74d79cb92b FS#10421 - clip keymap updates.
Major changes:
- try to minimise combos
- home is goto menu just about everywhere (and goto previous from the main menu)
- home+select is goto wps
- long home is quickscreen
- removed referneces to the rec screen... we can argue about that when recording is implemented

in the wps:
- down = id3 screen
- long down = pitch screen

lists:
- select+up/down is page up/down.... home+right isnt a valid combo, nor is home+up :<

- home in quickscreen is exit


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21770 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 00:22:27 +00:00
Steve Bavin
fb2380790e FS#8894 - Add time stretching feature to all SWCODEC targets - the current algorithm is best for spoken word.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21258 a1c6a512-1295-4272-9138-f99709370657
2009-06-12 07:20:50 +00:00
Frank Gevaerts
08fb988e87 Add HID keymap handling in usb screen. This allows to use the DAP as a keypad to control the PC. The current keymaps are audio-oriented (play/pause/volume/...) (FS#10218 by Tomer Shalev)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21054 a1c6a512-1295-4272-9138-f99709370657
2009-05-23 14:42:54 +00:00
Michael Giacomelli
ee7e1323dc Commit keyboard keymap fixed for the Sansa Clip by Rafael Carre.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20721 a1c6a512-1295-4272-9138-f99709370657
2009-04-17 15:04:33 +00:00
Bertrik Sikken
ae351903a6 Commit stable parts of FS#9611 - Sansa Clip radio code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19813 a1c6a512-1295-4272-9138-f99709370657
2009-01-21 20:51:43 +00:00
Björn Stenberg
7bc29086ec Minor Clip button changes: UP|REPEAT no longer goes to wps. Volume adjustment activated in list + tree.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19760 a1c6a512-1295-4272-9138-f99709370657
2009-01-13 14:51:44 +00:00
Bertrik Sikken
48249d3678 Sansa Clip: simplify keymap for button_context_right_is_inc. This fixes moving around in the graphical equalizer
screen.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19648 a1c6a512-1295-4272-9138-f99709370657
2009-01-03 00:14:59 +00:00
Bertrik Sikken
c16effb4bf Fixed Sansa clip keymap for CONTEXT_SETTINGS. Use same keymap for CONTEXT_SETTINGS_TIME.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19202 a1c6a512-1295-4272-9138-f99709370657
2008-11-24 18:47:49 +00:00
Bertrik Sikken
fda2e32d42 Use volume buttons instead of left/right button to control volume in WPS.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19192 a1c6a512-1295-4272-9138-f99709370657
2008-11-23 23:36:18 +00:00
Rafaël Carré
cd9b1379ff Sansa Clip simulator
First draft at keymapping based on e200

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18948 a1c6a512-1295-4272-9138-f99709370657
2008-10-31 18:54:37 +00:00