ralphy wrote: 
> There is a Quit menu item at the bottom of the main menu in jivelite. 
> Alternatively, you can press the small letter o to quit immediately. 
> Picoreplayer will restart jivelite automatically.
Thanks Ralphy. I had earlier hidden Quit from the HOME menu, that is why
I did not see it... Pressing letter o indeed works.

> Unfortunately, you can't add new key codes in InputToActionMap.lua as
> all keys must be registered in the jive framework C source first, which
> then requires recompiling jivelite and as you discovered if jivelite
> doesn't recognize the key code it won't start.
> 
> The Fn (function) keys are 'reassigned in the framework'
> (https://github.com/ralph-irving/jivelite/blob/master/src/jive_framework.c#L102)
> to KEY_PRESET_n so you should be able to map
> 
> > 
Code:
--------------------
  >   > [KEY_PRESET_3] = "go_search",
--------------------
> > 
Following your suggestion I have modified the behavior of function keys
F3 to F7 by means of following changes to sections
keyActionMappings.press as well as keyActionMappings.hold in
InputToActionMap.lua:

Code:
--------------------
    [KEY_PRESET_3] = "go_search",
  [KEY_PRESET_4] = "disabled",
  [KEY_PRESET_5] = "disabled",
  [KEY_PRESET_6] = "disabled",
  [KEY_PRESET_7] = "disabled", 
--------------------

FYI, the reason for disabling the coloured function keys F4 to F7 is
that these keys are programmed to function as "Source Select" keys for
my Stereo set when the RC operates in IR mode. For selecting a different
input source for my Stereo, I need to long-press one of these function
keys in IR mode. It happened a few times that I long-pressed one of
these keys for selecting a different input source for my Stereo,
assuming that the RC was operating in IR mode, while in reality the RC
was operating in RF mode. By disabling the function keys in RF mode it
is avoided that presets are accidentally changed.

Apart from changing the behavior of the function keys I also modified
the mapping of the special characters for setting presets 1 to 9. I did
this because the order of special characters on this T3 Remote Control
is different from the order that is used on standard PC/Laptop
keyboards, refer to picture below:

31247

I changed the mapping of special characters to presets by selecting the
special character that is physically located directly below the
corresponding numerical key.
Following changes were made to section charActionMappings.press in
InputToActionMap.lua:


Code:
--------------------
    --  [")"]  = "set_preset_0",
        ["!"]  = "set_preset_1",
        ["^"]  = "set_preset_2",
        ["#"]  = "set_preset_3",
        ["$"]  = "set_preset_4",
        ["%"]  = "set_preset_5",
        ["&"]  = "set_preset_6",
        ["*"]  = "set_preset_7",
        ["("]  = "set_preset_8",
        [")"]  = "set_preset_9",
--------------------


With this mapping I can set presets 1 to 9 by means of the Remote
Control. Only limitation is that preset 0 (corresponding with preset 10
in LMS) cannot be set with the RC.

> If the KEY_PLAYPAUSE doesn't respond as KEY_PLAY or KEY_PAUSE  you won't
> likely be able to map it without modifying the SDL library and
> recompiling it and jivelite.
Not being a programmer,  at this moment in time I consider modification
of source code and recompilation of Jivelite a step to far. It is a pity
that I can't pause/play audio with the PLAYPAUSE key at the front side
of the RC, but I can still do this by using the SPACE bar at the back
side. This is a limitation that I can live with.

Thanks again Ralphy for your help! If there are piCorePlayer users that
own a similar RC are interested in the modified InputToActionMap.lua
file, just let me know in this forum topic. On request I can provide the
modified InputToActionMap.lua file including detailed installation
instructions.


+-------------------------------------------------------------------+
|Filename: T3_Air-Mouse_keyboard.jpg                                |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31247|
+-------------------------------------------------------------------+


| LMS 7.9.3 | Squeezebox Boom | RPi0W + pCP 6.1.0 + HiFiBerry DAC |
------------------------------------------------------------------------
CJS's Profile: http://forums.slimdevices.com/member.php?userid=68700
View this thread: http://forums.slimdevices.com/showthread.php?t=112709

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to