##################################################################################
# Button names to function mappings
##################################################################################
# The format here is buttonname = function, grouped by [modename]

[common]
# Button functions that are common to all modes (unless overridden)
0						= numberScroll_0
1						= numberScroll_1
2						= numberScroll_2
3						= numberScroll_3
4						= numberScroll_4
5						= numberScroll_5
6						= numberScroll_6
7						= numberScroll_7
8						= numberScroll_8
9						= numberScroll_9
0.hold					= preset_0
1.hold					= preset_1
2.hold					= preset_2
3.hold					= preset_3
4.hold					= preset_4
5.hold					= preset_5
6.hold					= preset_6
7.hold					= preset_7
8.hold					= preset_8
9.hold					= preset_9
0.hold_release			= preset_release0
1.hold_release			= preset_release1
2.hold_release			= preset_release2
3.hold_release			= preset_release3
4.hold_release			= preset_release4
5.hold_release			= preset_release5
6.hold_release			= preset_release6
7.hold_release			= preset_release7
8.hold_release			= preset_release8
9.hold_release			= preset_release9
arrow_down				= down
arrow_down.repeat		= down_repeat
knob_right              = down
knob_right.repeat       = down_repeat
arrow_left				= left
arrow_left.hold			= home
arrow_right				= right
knob_push				= right
arrow_up				= up
arrow_up.repeat			= up_repeat
knob_left				= up
knob_left.repeat		= up_repeat
rew.single				= jump_rew
rew.hold				= song_scanner
brightness_down			= brightness_down
brightness_up			= brightness_up
brightness.single		= brightness_toggle
brightness.hold			= dead
brightness				= dead
fwd.single				= jump_fwd
fwd.hold				= song_scanner
format					= titleFormat
muting					= muting
pause.single			= pause
pause.hold				= stop
play.single				= play
play.hold				= play
power					= power_toggle
power_front				= power_toggle
power_front.hold		= dead
power_front.repeat		= dead
power_off				= power_off
power_on				= power_on
add.single				= add
add.hold				= dead
sleep.single			= sleep
sleep.hold				= sleep
snooze.single			= snooze
snooze.hold				= sleep
stop					= stop
voldown					= volume
voldown.repeat			= volume
volup					= volume
volup.repeat			= volume
volup_front             = volume_front
volup_front.repeat      = volume_front
voldown_front           = volume_front
voldown_front.repeat    = volume_front      
pitchdown				= pitch_down
pitchdown.repeat		= pitch_down
pitchup					= pitch_up
pitchup.repeat			= pitch_up
bassdown				= bass_down
bassdown.repeat			= bass_down
bassup					= bass_up
bassup.repeat			= bass_up
trebledown				= treble_down
trebledown.repeat		= treble_down
trebleup				= treble_up
trebleup.repeat			= treble_up
volume					= volume
volumemode				= volumemode
home					= home
preset_0.single			= playPreset_0
preset_1.single			= playPreset_1
preset_2.single			= playPreset_2
preset_3.single			= playPreset_3
preset_4.single			= playPreset_4
preset_5.single			= playPreset_5
preset_6.single			= playPreset_6
preset_7.single			= playPreset_7
preset_8.single			= playPreset_8
preset_9.single			= playPreset_9
preset_0.hold			= favorites_add0
preset_1.hold			= favorites_add1
preset_2.hold			= favorites_add2
preset_3.hold			= favorites_add3
preset_4.hold			= favorites_add4
preset_5.hold			= favorites_add5
preset_6.hold			= favorites_add6
preset_7.hold			= favorites_add7
preset_8.hold			= favorites_add8
preset_9.hold			= favorites_add9

# playing display modes
now_playing				= playdisp_toggle
playdisp_none			= playdisp_0
playdisp_et				= playdisp_1
playdisp_rt				= playdisp_2
playdisp_pb				= playdisp_3
playdisp_pbet			= playdisp_4
playdisp_pbrt			= playdisp_5

# textsize modes
size					= textsize_toggle
textsize_small			= textsize_small
textsize_medium			= textsize_medium
textsize_large			= textsize_large

# shuffle modes
shuffle.single			= shuffle_toggle
shuffle.hold			= randomPlay
shuffle_off				= shuffle_off
shuffle_on				= shuffle_on

# repeat modes
repeat					= repeat_toggle
repeat_off				= repeat_0
repeat_one				= repeat_1
repeat_all				= repeat_2

# special buttons
browse					= browse
search					= globalsearch
favorites.single		= favorites
favorites.hold			= favorites_add
visual					= visual_toggle

favorites_2.single		= favorites
favorites_2.hold		= favorites_add
now_playing_2			= playdisp_toggle
search_2				= globalsearch

# menu shortcuts
menu_playlist			= menu_playlist
menu_browse_genre		= menu_browse_genre
menu_browse_artist		= menu_browse_artist
menu_browse_album		= menu_browse_album
menu_browse_music		= menu_browse_music
menu_search_artist		= menu_search_artist
menu_search_album		= menu_search_album
menu_search_song		= menu_search_song
menu_browse_playlists	= menu_browse_playlists
menu_plugins			= menu_plugins
menu_home				= menu_home
menu_settings			= menu_settings
menu_pop				= menu_pop
menu_now_playing		= menu_now_playing
menu_synchronize		= menu_synchronize

# digital input
digital_input_aes-ebu		= modefunction_Slim::Plugin::DigitalInput::Plugin->aes-ebu
digital_input_bnc-spdif		= modefunction_Slim::Plugin::DigitalInput::Plugin->bnc-spdif
digital_input_rca-spdif		= modefunction_Slim::Plugin::DigitalInput::Plugin->rca-spdif
digital_input_toslink		= modefunction_Slim::Plugin::DigitalInput::Plugin->toslink

# analog input
analog_input_line_in		= modefunction_Slim::Plugin::LineIn::Plugin->linein


[home]
arrow_left.hold			= dead

[playlist]
add.hold				= zap

[off]
# When the player is powered off, most buttons are dead
play.single				= modefunction_off->play
add.*					= dead
arrow_right.*			= dead
knob_push.*			= dead
arrow_left.*			= dead
arrow_down.*			= dead
arrow_up.*				= dead
knob_left.*				= dead
knob_right.*			= dead
format					= dead
fwd.*					= dead
menu_browse_album		= dead
menu_browse_artist		= dead
menu_browse_genre		= dead
menu_browse_music		= dead
menu_browse_playlists	= dead
menu_home				= dead
menu_playlist			= dead
menu_plugins			= dead
menu_pop				= dead
menu_search_album		= dead
menu_search_artist		= dead
menu_search_song		= dead
menu_settings			= dead
menu_now_playing		= dead
muting					= dead
now_playing				= dead
pause.*					= dead
playdisp_et				= dead
playdisp_toggle			= dead
playdisp_none			= dead
playdisp_pb				= dead
playdisp_pbet			= dead
playdisp_pbrt			= dead
playdisp_rt				= dead
repeat					= dead
repeat_toggle			= dead
repeat_all				= dead
repeat_off				= dead
repeat_one				= dead
rew.*					= dead
shuffle					= dead
shuffle_toggle			= dead
shuffle.*				= dead
shuffle_off				= dead
shuffle_on				= dead
search					= dead
browse.*				= dead
favorites.*				= dead
search_2			= dead
browse_2.*			= dead
favorites_2.*			= dead
sleep.single			= snooze
sleep.hold				= dead
snooze.single			= snooze
snooze.hold				= dead
stop					= dead
voldown.*				= dead
volup.*					= dead
volup_front.*			= dead
voldown_front.*			= dead
0						= dead
1						= dead
2						= dead
3						= dead
4						= dead
5						= dead
6						= dead
7						= dead
8						= dead
9						= dead
pitchdown.*				= dead
pitchup.*				= dead
bassdown.*				= dead
bassup.*				= dead
trebledown.*			= dead
trebleup.*				= dead
volumemode.*			= dead
visual.*				= dead
home.*					= dead
digital_input_aes-ebu		= dead
digital_input_bnc-spdif		= dead
digital_input_rca-spdif		= dead
digital_input_toslink		= dead
analog_input_line_in		= dead


[block]
# When the player is blocked during a long operations, most buttons are dead
# those not listed are safe for use in blocked mode
add.*					= dead
arrow_down.*			= dead
arrow_left				= dead
arrow_right				= dead
knob_push				= dead
arrow_up.*				= dead
knob_left.*				= dead
knob_right.*			= dead
format					= dead
fwd.*					= dead
menu_browse_album		= dead
menu_browse_artist		= dead
menu_browse_genre		= dead
menu_browse_music		= dead
menu_browse_playlists	= dead
menu_home				= dead
menu_playlist			= dead
menu_plugins			= dead
menu_pop				= dead
menu_search_album		= dead
menu_search_artist		= dead
menu_search_song		= dead
menu_settings			= dead
now_playing				= dead
play.*					= dead
power					= dead
power_front.*			= dead
power_off				= dead
power_on				= dead
rew.*					= dead
shuffle					= dead
shuffle_off				= dead
shuffle_on				= dead
sleep					= dead
stop					= dead
home.*					= dead

[browsedb]
play					= dead
play.single				= play_0
play.hold				= create_mix
add						= dead
add.single				= play_1
add.hold				= play_2

[browsetree]
play					= dead
play.single				= play_0
play.hold				= create_mix
add						= dead
add.single				= play_1
add.hold				= play_2

[trackinfo]
play					= dead
play.single				= play_0
play.hold				= create_mix
add						= dead
add.single				= play_1
add.hold				= play_2

[browsemenu]
play					= right
add						= right

[plugins]
play					= right
add						= right

[settings]
play					= right
add						= right

[screensaver]
0						= done
1						= done
2						= done
3						= done
4						= done
5						= done
6						= done
7						= done
8						= done
9						= done
arrow_down				= done_passbackplaylist
arrow_left				= done_passbackplaylist
arrow_right				= done_passbackplaylist
knob_push				= done_passbackplaylist
arrow_up				= done_passbackplaylist
play.single             = done
play.hold               = done
add.single              = done
add.hold                = zap
pause.single			= done_passback
pause.hold				= done_passback
stop					= done_passback
knob					= done
knob_left				= volume
knob_right				= volume

[idlesaver]
0						= done
1						= done
2						= done
3						= done
4						= done
5						= done
6						= done
7						= done
8						= done
9						= done
arrow_down				= done_passbackplaylist
arrow_left				= done_passbackplaylist
arrow_right				= done_passbackplaylist
knob_push				= done_passbackplaylist
arrow_up				= done_passbackplaylist
play.single				= done
play.hold				= done
add.single				= done
add.hold				= done
pause.single			= done_passback
pause.stop				= done_passback
stop					= done_passback
fwd						= done_passback
rew						= done_passback
knob					= done
knob_left				= done_passback
knob_right				= done_passback

[INPUT.Time]
0						= numberLetter_0
1						= numberLetter_1
2						= numberLetter_2
3						= numberLetter_3
4						= numberLetter_4
5						= numberLetter_5
6						= numberLetter_6
7						= numberLetter_7
8						= numberLetter_8
9						= numberLetter_9
arrow_left					= left
arrow_right					= right
knob_push					= right
search						= exit_search
play.*						= dead
play						= exit_play
add.*						= dead
add						= exit_add
knob_left					= down
knob_left.repeat			= down
knob_right					= up
knob_right.repeat			= up

[INPUT.Text]
0						= numberLetter_0
0.hold						= letter_0
1						= numberLetter_1
1.hold						= letter_1
2						= numberLetter_2
2.hold						= letter_2
3						= numberLetter_3
3.hold						= letter_3
4						= numberLetter_4
4.hold						= letter_4
5						= numberLetter_5
5.hold						= letter_5
6						= numberLetter_6
6.hold						= letter_6
7						= numberLetter_7
7.hold						= letter_7
8						= numberLetter_8
8.hold						= letter_8
9						= numberLetter_9
9.hold						= letter_9
arrow_left					= backspace
arrow_right					= nextChar
knob_push					= nextChar
search						= exit_search
play.*						= dead
play						= exit_play
add.*						= dead
add						= letter_space

[INPUT.List]
arrow_up					= up
arrow_up.repeat				= up_repeat
arrow_down					= down
arrow_down.repeat			= down_repeat
knob_left					= up
knob_left.repeat			= up_repeat
knob_right              	= down
knob_right.repeat       	= down_repeat
arrow_left					= exit_left
arrow_right					= exit_right
knob_push					= exit_right
play.*						= passback
add.*						= passback
search.*					= passback
stop.*						= passback
pause.*						= passback

[INPUT.Choice]
arrow_left					= exit_left
arrow_right					= exit_right
knob_push					= exit_right
play						= dead
play.single					= play_0
play.hold					= create_mix
add.*						= dead
add.single					= add_single
add.hold					= add_hold
search.*					= passback
stop.*						= passback
pause.*						= passback

[INPUT.Bar]
knob_left					= down
knob_left.repeat			= down
knob_right					= up
knob_right.repeat			= up
arrow_left					= exit_left
arrow_right					= exit_right
knob_push					= exit_right
play.*						= passback
add.*						= passback
search.*					= passback
stop.*						= passback
pause.*						= passback
fwd.*						= passback
rew.*						= passback

[INPUT.Volume]
knob_left					= down
knob_left.repeat			= down
knob_right					= up
knob_right.repeat			= up
arrow_up					= up
arrow_down					= down
arrow_up.repeat				= up
arrow_down.repeat			= down
volup						= up
volup.repeat				= up
voldown						= down
voldown.repeat				= down
volup_front					= up
volup_front.repeat			= up
voldown_front				= down
voldown_front.repeat		= down
arrow_left					= exit_left
arrow_right					= exit
knob_push					= exit
play.*						= exit_passback
add.*						= exit_passback
search.*					= exit_passback
stop.*						= exit_passback
pause.*						= exit_passback
fwd.*						= exit_passback
rew.*						= exit_passback
