PDA

View Full Version : Default keymap of ffwd/rwwd & track skip in mymusi


jcage89
2005-03-06, 19:14
i am not sure if this is a feature suggestion or support request, but i'm wondering if anyone has successfully key-mapped track skip (back&forth) as well as ffwd and rewind for use with my music feature and standard controller s. if so, please help me out with your keymap.xml.

my idea would be to use the anolog sticks lateral (left and right) movement for this feature. right now, it appears with the default keymap that pressing down on the left analog stick takes a screenshot. moving the right analog stick up an down increases/decreases the gain level. otherwise than these, the analog sticks appear to have no other function in "my music"

ideal: use lateral movement of the right analog stick for track search. a single press and release in either direction would skip forward or back a track. pressing and holding in either direction would fast forward or rewind the track progressively. this would not take away any default keymap functionality.

alternatively, if it is impossible for xbmc to distinguish between (press&release) on the analog stick vs. (press&hold), i would suggest using lateral movement on the left analog stick for ffwd & rewind then lateral movement on the right analog stick for track skip forward and back. this also would not take away any default keymap functionality.

i have heard the comments about leaving the keymap editing for each user because it would involve losing default functionality but i think my idea makes use of currently unused controller functions and this would truly add a feature commonly expected on most music player interfaces and (unless i am worng) not detract from any current default functionality. as such, i think it should be added to the default keymap.

jc

jcage89
2005-03-07, 04:58
ok, so i took a little initiative and made the following simple edits to the keymap.xml (my edits in black)...

keymap.xml - line 71
<action>
* * *<description>fastforward music</description>
* * *<id>77</id>
* * *<gamepad>rightthumbstickright</gamepad>
* * *<remote>forward</remote>
* * *<keyboard>f</keyboard>

results: pressing the right thumbstick to the right does kick the music track into fast forward, but fast forward works in increments of 2x, 8x, 16x, 32x, etc. *which are cycled with each button press. *because the thumbstick movement is not recorded as a single press, but rather perpetual movement, it is impossible to control the rate of fast forward or easily return to *normal play without restarting the track.

keymap.xml - line 77
<action>
* * *<description>rewind music</description>
* * *<id>78</id>
* * *<gamepad>rightthumbstickleft</gamepad>
* * *<remote>reverse</remote>
* * *<keyboard>r</keyboard>

results: same as for fast forward.


keymap.xml - line 192
<action>
* * *<description>skip next</description>
* * *<id>14</id>
* * *<gamepad>leftthumbstickright</gamepad>
* * *<remote>skipplus</remote>
* * *<remotecode></remotecode>
* * *<keyboard>.</keyboard>

results: did not work. *moving the left thumbstick to the right does nothing.

keymap.xml - line 199
<action>
* * *<description>skip previous</description>
* * *<id>15</id>
* * <gamepad>leftthumbstickleft</gamepad>
* * *<remote>skipminus</remote>
* * *<remotecode></remotecode>
* * *<keyboard>,</keyboard>

results: did not work. *moving the left thumbstick to the left does nothing.


any ideas? or help please.

jc

jcage89
2005-03-07, 07:37
ok so this mapping as found at buttontransltor.cpp is why my left thumbstick commands didn't do anything...

it looks like the valid controller buttons as used in keymap.xml (with default function in my music) are:

a = start track playing (select track)
b = back
x = visualization (on/off)
y = moves cursor down list of tracks
white = pulls up a menu w/album information, que, etc.
black = switches to playlists view
start = stops a track that is playing
back = back to previous menu
leftthumbbutton = takes a screenshot
rightthumbbutton = pulls up menu for shutdown or exit
rightthumbstickdown = gain adjust down
rightthumbstickup = gain adjust up
rightthumbstickleft = ? no action assigned by default ?
rightthumbstickright = ? no action assigned by default ?

leftthumbstick = no direction actions are assignable?

lefttrigger = page up quickly through list
righttrigger = pagedown quickly through list

leftanalogtrigger = what is this vs. plain lefttrigger?
rightanalogtrigger = what is this vs. plain righttrigger?

dpadleft = navigate left
dpadright = navigate right
dpadup = navigate up
dpaddown = navigate down


my questions about this are:

1. why doesn't the left thumbstick have any assignable directional functions?

2. what is the difference on the gamepad between "analogtrigger" vs. just "trigger"?

3. what would be the best candidates on the game pad to use as a "ffwd", "rewind", "skipfwd", "skipback", and "pause" buttons?

4. had any developer considered making the gamepad functionality in my music mode more intuitive by default with functions ordinarily found on a music playback device?


thanks - jc