Announcement

Collapse
No announcement yet.

Different key commands in different skins?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Different key commands in different skins?

    Hi!

    I have a rotary controller which I want to use this way:

    (I will connect it to the keyboard as two keys, left and right)

    in main.skin, keys 39 and 37 (left and right) I will have as "CTRLLEFT" and "CTRLRIGHT" to seledt different buttons, and in audio_player.skin I will have the keys as "CTRLUP" and "CTRLDOWN" to scroll the playlist. I will also use the "push" function on the rotary swith for "PLAY" in audio_player.skin.

    Is it possible to use different key commands in different skins? and if, how?

    /Erik

  • #2
    Hello Erik,

    you can define commands in ExecTBL.ini which are skin specific, see extract below:

    /, This (OPTIONAL) file contains translation commands.
    /, RR will accept the commands defined on the LEFT
    /, and execute them as expressed on the RIGHT
    /, you can use this to create or redefine any command
    /, (or to add functionality to any syandard command).
    /,
    /, The Format of this file is (by choice):
    /,
    /, "<COMMAND>","<EXEC COMMAND>"
    /, "<COMMAND>","<EXEC COMMAND>",filename.skin

    So try and define the keycodes, and then the commands something like this:

    39,"MYKEYLEFT"
    37,"MYKEYRIGHT"

    "MYKEYLEFT","CTRLLEFT";Firstskin name.skin
    "MYKEYLEFT","CTRLUP";Secondskin name.skin

    I would use the ExecTBL.ini file in the skin directory, which makes these commands specific to that skin only.

    You may be able to do this in KeyTBL.ini, I am not sure, but a couple of options at least.

    cheers
    KPJUK
    M1000, 512MB, 512MB CF, 6GB Disk (4200rpm),
    DVD/RW, Dynamix 8" screen, M2-ATX, Custom case,Too many hours building and rebuilding and rebuild.......

    Comment


    • #3
      Thanx, with some small mods all workes fine!

      Comment


      • #4
        What?

        Hey Erik. What did you wind up doing to get your button thing to work differently per screen.

        Do you have the code you used?

        Comment


        • #5
          It's as simple as this :

          Figure out which keycodes your device sends on turns/pushes and so on,
          map those keycodes to a virtual command name in Keytbl.ini like so :

          6038,"SN_TWIST_RIGHT"
          6040,SN_TWIST_LEFT"
          6037,"SN_MOVE_LEFT"
          6039,"SN_MOVE_RIGHT"

          Keycodes can be found with the little util called keycode.exe in the RR dir.

          Then use Exectbl.ini to define what real command each virtual command should execute on which screen, something like this :

          "SN_TWIST_RIGHT","VOL-",Audio_Player.skin
          "SN_TWIST_LEFT","VOL+",Audio_Player.skin

          "SN_TWIST_RIGHT","CTRLDOWN",Audio_Browser.skin
          "SN_TWIST_LEFT","CTRLUP",Audio_Browser.skin

          This will make the same button/axis on a device control Volume when you are in the audio player, and the playlist selection when you are in the audio browser, hope you get the idea.
          Not doing carpc anymore

          Comment

          Working...
          X