QUOTE(vlad @ Jul 15 2006, 06:25 AM)
thnks guys. I'm just not sure where to change mapping in config (how?) or source code.
you can edit the source and recompile. here's the source segment of interest. in main.c of the xmms source tarball you will need to modify the source under the mainwin_keypress (GtkWidget * w, GdkEventKey * event, gpointer data) function
CODE
gboolean mainwin_keypress(GtkWidget * w, GdkEventKey * event, gpointer data)
{
switch(event->keyval)
{
// added OK/Enter key to activate play
case GDK_Return:
case GDK_KP_Enter:
mainwin_play_pushed();
break;
// added Cancel/Escape key to activate stop
case GDK_Cancel:
case GDK_Escape:
mainwin_stop_pushed();
break;
// reassigned volume down to N key
case GDK_N:
case GDK_n:
mainwin_set_volume_diff(-2);
break;
// reassigned volume up to M key
case GDK_M:
case GDK_m:
mainwin_set_volume_diff(2);
break;
// reassigned Down key to go previous track
case GDK_Up:
case GDK_KP_Up:
playlist_prev();
break;
// reassigned Up key to go next track
case GDK_Down:
case GDK_KP_Down:
playlist_next();
break;
case GDK_Left:
case GDK_KP_Left:
if(playlist_get_current_length() != -1)
input_seek(CLAMP(input_get_time() - 5000, 0, playlist_get_current_length()) / 1000);
break;
case GDK_Right:
case GDK_KP_Right:
if(playlist_get_current_length() != -1)
input_seek(CLAMP(input_get_time() + 5000, 0, playlist_get_current_length()) / 1000);
break;
default:
break;
}
return TRUE;
}
The above enables you to use OK and CANCEL (both the ones on the keyboard and those two buttons on the back/side of the Z) to play and stop in addition to pressing X and C. It also allows you to use UP and DOWN (again on the keyboard and the back/side keys) to change between song tracks.
You can easily add the key symbol for the ce-rh2 to the above, ie
change from
QUOTE
case GDK_Return:
case GDK_KP_Enter:
mainwin_play_pushed();
break;
to
QUOTE
case GDK_Return:
case GDK_KP_Enter:
case GDK_XF86AudioPlay:
mainwin_play_pushed();
break;