@@ -18,6 +18,7 @@ public static class KeymapPresetOperations
1818 const float FontSizePresetButton = 8.5f ;
1919 const string PRESET_BROWSING = "Browsing" ;
2020 const string PRESET_GAMING = "Gaming" ;
21+ const string PRESET_MOVIE = "Movie" ;
2122 const string MSG_PRESET_SELECTED = "\n *SELECTED*" ;
2223 public static void ChangeButtonTextForSelected ( Button prButton , bool makeSelected )
2324 {
@@ -64,6 +65,7 @@ static Button BuildPresetButton(string presetName)
6465 List < KeymapPreset > presetButtons = new ( ) ;
6566 presetButtons . Add ( new ( ) { ButtonForPresetSection = BuildPresetButton ( PRESET_BROWSING ) , KeymapName = PRESET_BROWSING , Keymaps = BuildPresetBrowsing ( ) } ) ;
6667 presetButtons . Add ( new ( ) { ButtonForPresetSection = BuildPresetButton ( PRESET_GAMING ) , KeymapName = PRESET_BROWSING , Keymaps = BuildPresetGaming ( ) } ) ;
68+ presetButtons . Add ( new ( ) { ButtonForPresetSection = BuildPresetButton ( PRESET_MOVIE ) , KeymapName = PRESET_BROWSING , Keymaps = BuildPresetMovie ( ) } ) ;
6769 return presetButtons ;
6870 }
6971 public static List < XMapLibKeymap > BuildPresetBrowsing ( )
@@ -130,5 +132,27 @@ public static List<XMapLibKeymap> BuildPresetGaming()
130132 } ;
131133 return mp ;
132134 }
135+ public static List < XMapLibKeymap > BuildPresetMovie ( )
136+ {
137+ List < XMapLibKeymap > mp = new ( )
138+ {
139+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_DPAD_DOWN , VKMappedTo = ( int ) Keys . VolumeDown } ,
140+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_DPAD_UP , VKMappedTo = ( int ) Keys . VolumeUp } ,
141+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_DPAD_LEFT , VKMappedTo = ( int ) Keys . Left } ,
142+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_DPAD_RIGHT , VKMappedTo = ( int ) Keys . Right } ,
143+ new ( ) { UsesRepeatBehavior = false , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_LTRIGGER , VKMappedTo = ( int ) Keys . RButton } ,
144+ new ( ) { UsesRepeatBehavior = false , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_RTRIGGER , VKMappedTo = ( int ) Keys . LButton } ,
145+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_LTHUMB_UP , VKMappedTo = ( int ) Keys . PageUp } ,
146+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_LTHUMB_LEFT , VKMappedTo = ( int ) Keys . BrowserBack } ,
147+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_LTHUMB_DOWN , VKMappedTo = ( int ) Keys . PageDown } ,
148+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_LTHUMB_RIGHT , VKMappedTo = ( int ) Keys . BrowserForward } ,
149+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_LSHOULDER , VKMappedTo = ( int ) Keys . MediaPlayPause } ,
150+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_RSHOULDER , VKMappedTo = ( int ) Keys . VolumeMute } ,
151+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_A , VKMappedTo = ( int ) Keys . Space } ,
152+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_B , VKMappedTo = ( int ) Keys . E } ,
153+ new ( ) { UsesRepeatBehavior = true , VKMappedFrom = ( int ) ControllerButtons . VK_PAD_X , VKMappedTo = ( int ) Keys . R }
154+ } ;
155+ return mp ;
156+ }
133157 }
134158}
0 commit comments