annotate default.cfg @ 2013:dcdad92f84a4

Multiplying by zero and shifting by zero are very different. Fixes regression in Overdrive 2
author Michael Pavone <pavone@retrodev.com>
date Sun, 01 Nov 2020 13:28:31 -0800
parents f3cca4b3f17a
children bdd83b47d78a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
1
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
2 bindings {
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
3 keys {
431
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
4 up gamepads.1.up
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
5 down gamepads.1.down
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
6 left gamepads.1.left
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
7 right gamepads.1.right
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
8 a gamepads.1.a
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
9 s gamepads.1.b
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
10 d gamepads.1.c
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
11 q gamepads.1.x
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
12 w gamepads.1.y
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
13 e gamepads.1.z
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
14 f gamepads.1.mode
431
440efd7d27a9 Read key bindings from config file
Mike Pavone <pavone@retrodev.com>
parents: 430
diff changeset
15 enter gamepads.1.start
451
b7c3b2d22858 Added support for saving savestates. Added gst savestate format test harness
Mike Pavone <pavone@retrodev.com>
parents: 445
diff changeset
16
916
20c464dbae8f Finished implementation of mouse capture mode
Michael Pavone <pavone@retrodev.com>
parents: 907
diff changeset
17 r ui.release_mouse
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
18 [ ui.vdp_debug_mode
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
19 u ui.enter_debugger
1263
5f65a16c23ff Implement raw screenshot functionality requested in ticket:10
Michael Pavone <pavone@retrodev.com>
parents: 1254
diff changeset
20 p ui.screenshot
1631
c4ba3177b72d WIP new VDP plane debug view and support for detached VDP debug views generally
Michael Pavone <pavone@retrodev.com>
parents: 1608
diff changeset
21 b ui.plane_debug
1634
e397766c3028 Added VRAM debug window
Michael Pavone <pavone@retrodev.com>
parents: 1631
diff changeset
22 v ui.vram_debug
1638
f27142c48567 Initial stab at CRAM debug in a detached window
Michael Pavone <pavone@retrodev.com>
parents: 1634
diff changeset
23 c ui.cram_debug
1641
bc9bb4e5856f Basic version of layer compositing debug view in a separate window
Michael Pavone <pavone@retrodev.com>
parents: 1638
diff changeset
24 n ui.compositing_debug
1909
508522f08e4d Initial stab at VGM logging support
Michael Pavone <pavone@retrodev.com>
parents: 1900
diff changeset
25 m ui.vgm_log
444
cc754a309ead Add fullscreen support and add a keybinding for exiting the emulator
Mike Pavone <pavone@retrodev.com>
parents: 431
diff changeset
26 esc ui.exit
468
949c7d875693 Added README file
Mike Pavone <pavone@retrodev.com>
parents: 451
diff changeset
27 ` ui.save_state
483
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
28 0 ui.set_speed.0
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
29 1 ui.set_speed.1
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
30 2 ui.set_speed.2
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
31 3 ui.set_speed.3
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
32 4 ui.set_speed.4
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
33 5 ui.set_speed.5
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
34 6 ui.set_speed.6
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
35 7 ui.set_speed.7
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
36 = ui.next_speed
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
37 - ui.prev_speed
1202
a6ae693974e0 Allow toggling full screen mode at runtime. Allow resizing the window in windowed mode. Allow specifying the aspect ratio in the config file.
Michael Pavone <pavone@retrodev.com>
parents: 1187
diff changeset
38 f11 ui.toggle_fullscreen
1208
95f5253e75c7 Implement soft reset in Genesis mode
Michael Pavone <pavone@retrodev.com>
parents: 1207
diff changeset
39 tab ui.soft_reset
1438
e2bd03ed3190 Allow reloading current ROM with a hotkey (default F5) and allow locking on a cartridge via menu
Michael Pavone <pavone@retrodev.com>
parents: 1434
diff changeset
40 f5 ui.reload
1377
e587f16e7d3d Implemented SMS pause button
Michael Pavone <pavone@retrodev.com>
parents: 1328
diff changeset
41 z ui.sms_pause
1254
d966298442d4 Implement keyboard capture functionality
Michael Pavone <pavone@retrodev.com>
parents: 1208
diff changeset
42 rctrl ui.toggle_keyboard_captured
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
43 }
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
44 pads {
1608
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
45 default {
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
46 dpads {
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
47 0 {
1608
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
48 up gamepads.n.up
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
49 down gamepads.n.down
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
50 left gamepads.n.left
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
51 right gamepads.n.right
881
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
52 }
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
53 }
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
54 buttons {
1608
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
55 a gamepads.n.a
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
56 b gamepads.n.b
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
57 rightshoulder gamepads.n.c
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
58 x gamepads.n.x
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
59 y gamepads.n.y
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
60 leftshoulder gamepads.n.z
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
61 back gamepads.n.mode
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
62 start gamepads.n.start
1187
6a4503fad67e Initial support for using SDL2 game controller mapping functionality
Michael Pavone <pavone@retrodev.com>
parents: 1184
diff changeset
63 guide ui.exit
1206
32265f6b79e9 Update default config to map leftstick/l3 to quick save
Michael Pavone <pavone@retrodev.com>
parents: 1204
diff changeset
64 leftstick ui.save_state
881
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
65 }
1207
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
66 axes {
1608
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
67 lefty.positive gamepads.n.down
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
68 lefty.negative gamepads.n.up
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
69 leftx.positive gamepads.n.right
419a0a133b5c Allow a gamepad mapping to apply to all controllers, controllers of a particular type (i.e.e 6-button PS4 controllers) or specific controllers (based on SDL2 GUID) in addition to the controller in a certain slot
Michael Pavone <pavone@retrodev.com>
parents: 1568
diff changeset
70 leftx.negative gamepads.n.left
1207
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
71 lefttrigger ui.prev_speed
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
72 righttrigger ui.next_speed
9d6f155732ed Basic support for mapping an analog axis to functionality
Michael Pavone <pavone@retrodev.com>
parents: 1206
diff changeset
73 }
881
415bb1911bd2 Change default config to make first gamepad mapped as gamepad 1, add a second gamepad maping. Player one on keyboard and player two on controller does not make sense as a default config
Michael Pavone <pavone@retrodev.com>
parents: 874
diff changeset
74 }
1665
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
75 ps4_6b_right {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
76 axes {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
77 lefttrigger ui.next_speed
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
78 leftx.negative gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
79 leftx.positive gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
80 lefty.negative gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
81 lefty.positive gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
82 righttrigger gamepads.n.c
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
83 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
84 buttons {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
85 a gamepads.n.a
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
86 b gamepads.n.b
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
87 back ui.sms_pause
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
88 guide ui.exit
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
89 leftshoulder gamepads.n.mode
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
90 leftstick ui.save_state
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
91 rightshoulder gamepads.n.z
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
92 rightstick ui.prev_speed
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
93 start gamepads.n.start
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
94 x gamepads.n.x
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
95 y gamepads.n.y
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
96 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
97 dpads {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
98 0 {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
99 down gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
100 left gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
101 right gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
102 up gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
103 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
104 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
105 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
106 ps3_6b_right {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
107 axes {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
108 lefttrigger ui.next_speed
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
109 leftx.negative gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
110 leftx.positive gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
111 lefty.negative gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
112 lefty.positive gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
113 righttrigger gamepads.n.c
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
114 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
115 buttons {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
116 a gamepads.n.a
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
117 b gamepads.n.b
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
118 back ui.sms_pause
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
119 guide ui.exit
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
120 leftshoulder gamepads.n.mode
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
121 leftstick ui.save_state
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
122 rightshoulder gamepads.n.z
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
123 rightstick ui.prev_speed
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
124 start gamepads.n.start
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
125 x gamepads.n.x
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
126 y gamepads.n.y
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
127 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
128 dpads {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
129 0 {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
130 down gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
131 left gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
132 right gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
133 up gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
134 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
135 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
136 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
137 xbox_360_6b_right {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
138 axes {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
139 lefttrigger ui.next_speed
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
140 leftx.negative gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
141 leftx.positive gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
142 lefty.negative gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
143 lefty.positive gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
144 righttrigger gamepads.n.c
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
145 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
146 buttons {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
147 a gamepads.n.a
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
148 b gamepads.n.b
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
149 back ui.sms_pause
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
150 guide ui.exit
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
151 leftshoulder gamepads.n.mode
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
152 leftstick ui.save_state
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
153 rightshoulder gamepads.n.z
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
154 rightstick ui.prev_speed
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
155 start gamepads.n.start
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
156 x gamepads.n.x
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
157 y gamepads.n.y
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
158 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
159 dpads {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
160 0 {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
161 down gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
162 left gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
163 right gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
164 up gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
165 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
166 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
167 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
168 xbone_6b_right {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
169 axes {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
170 lefttrigger ui.next_speed
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
171 leftx.negative gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
172 leftx.positive gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
173 lefty.negative gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
174 lefty.positive gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
175 righttrigger gamepads.n.c
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
176 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
177 buttons {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
178 a gamepads.n.a
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
179 b gamepads.n.b
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
180 back ui.sms_pause
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
181 guide ui.exit
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
182 leftshoulder gamepads.n.mode
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
183 leftstick ui.save_state
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
184 rightshoulder gamepads.n.z
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
185 rightstick ui.prev_speed
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
186 start gamepads.n.start
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
187 x gamepads.n.x
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
188 y gamepads.n.y
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
189 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
190 dpads {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
191 0 {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
192 down gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
193 left gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
194 right gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
195 up gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
196 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
197 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
198 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
199 genesis_6b_bumpers {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
200 axes {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
201 lefttrigger ui.exit
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
202 righttrigger gamepads.n.mode
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
203 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
204 buttons {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
205 a gamepads.n.a
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
206 b gamepads.n.b
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
207 back ui.sms_pause
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
208 guide ui.exit
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
209 leftshoulder gamepads.n.z
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
210 rightshoulder gamepads.n.c
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
211 start gamepads.n.start
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
212 x gamepads.n.x
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
213 y gamepads.n.y
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
214 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
215 dpads {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
216 0 {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
217 down gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
218 left gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
219 right gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
220 up gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
221 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
222 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
223 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
224 saturn_6b_bumpers {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
225 axes {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
226 lefttrigger ui.exit
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
227 righttrigger gamepads.n.mode
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
228 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
229 buttons {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
230 a gamepads.n.a
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
231 b gamepads.n.b
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
232 back ui.sms_pause
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
233 guide ui.exit
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
234 leftshoulder gamepads.n.z
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
235 rightshoulder gamepads.n.c
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
236 start gamepads.n.start
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
237 x gamepads.n.x
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
238 y gamepads.n.y
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
239 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
240 dpads {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
241 0 {
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
242 down gamepads.n.down
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
243 left gamepads.n.left
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
244 right gamepads.n.right
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
245 up gamepads.n.up
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
246 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
247 }
2721949b372d Added default controller bindings for a number of 6-button style pads
Mike Pavone <pavone@retrodev.com>
parents: 1660
diff changeset
248 }
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
249 }
907
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
250 mice {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
251 0 {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
252 motion mouse.1.motion
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
253 buttons {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
254 1 mouse.1.left
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
255 2 mouse.1.middle
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
256 3 mouse.1.right
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
257 4 mouse.1.start
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
258 }
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
259 }
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
260 #having the second host mouse also mapped to the first emulated
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
261 #mouse is useful for laptop users with an external mouse
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
262 1 {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
263 motion mouse.1.motion
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
264 buttons {
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
265 1 mouse.1.left
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
266 2 mouse.1.middle
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
267 3 mouse.1.right
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
268 4 mouse.1.start
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
269 }
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
270 }
b5d35222047e Mega mouse support is mostly done
Michael Pavone <pavone@retrodev.com>
parents: 881
diff changeset
271 }
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
272 }
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
273
645
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
274 io {
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
275 devices {
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
276 1 gamepad6.1
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
277 2 gamepad6.2
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
278 }
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
279 }
d77c79cec800 Initial support for configurable IO, custom IO and sega transfer board emulation
Michael Pavone <pavone@retrodev.com>
parents: 498
diff changeset
280
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
281 video {
1202
a6ae693974e0 Allow toggling full screen mode at runtime. Allow resizing the window in windowed mode. Allow specifying the aspect ratio in the config file.
Michael Pavone <pavone@retrodev.com>
parents: 1187
diff changeset
282 #special value "stretch" will cause aspect to match window aspect ratio
a6ae693974e0 Allow toggling full screen mode at runtime. Allow resizing the window in windowed mode. Allow specifying the aspect ratio in the config file.
Michael Pavone <pavone@retrodev.com>
parents: 1187
diff changeset
283 aspect 4:3
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
284 width 640
1402
458df351af06 Allow height to be specified in the config file and properly calculate from the aspect setting if it is not specified
Michael Pavone <pavone@retrodev.com>
parents: 1377
diff changeset
285 #height is normally calculated automatically from width using the aspect setting
458df351af06 Allow height to be specified in the config file and properly calculate from the aspect setting if it is not specified
Michael Pavone <pavone@retrodev.com>
parents: 1377
diff changeset
286 #if you would like to set it explicitly, uncomment the line below
458df351af06 Allow height to be specified in the config file and properly calculate from the aspect setting if it is not specified
Michael Pavone <pavone@retrodev.com>
parents: 1377
diff changeset
287 #height 480
498
51bf87f76d15 Pull shader file names from config file.
Mike Pavone <pavone@retrodev.com>
parents: 483
diff changeset
288 vertex_shader default.v.glsl
51bf87f76d15 Pull shader file names from config file.
Mike Pavone <pavone@retrodev.com>
parents: 483
diff changeset
289 fragment_shader default.f.glsl
1004
fc000f245cc8 Set vsync state based on config file rather than just using whatever the system decides for us.
Michael Pavone <pavone@retrodev.com>
parents: 1003
diff changeset
290 scanlines off
fc000f245cc8 Set vsync state based on config file rather than just using whatever the system decides for us.
Michael Pavone <pavone@retrodev.com>
parents: 1003
diff changeset
291 vsync off
1017
216fa63749b3 Added documentation for lock-on support and a fullscreen config option.
Michael Pavone <pavone@retrodev.com>
parents: 1005
diff changeset
292 fullscreen off
1328
70faad89d491 Add config file option to disable Open GL rendering
Michael Pavone <pavone@retrodev.com>
parents: 1296
diff changeset
293 #setting gl to off, will force use of the SDL2 fallback renderer
70faad89d491 Add config file option to disable Open GL rendering
Michael Pavone <pavone@retrodev.com>
parents: 1296
diff changeset
294 #this is useful for those running on machines with Open GL 2.0 unavailable
70faad89d491 Add config file option to disable Open GL rendering
Michael Pavone <pavone@retrodev.com>
parents: 1296
diff changeset
295 #so the warning doesn't display on startup
70faad89d491 Add config file option to disable Open GL rendering
Michael Pavone <pavone@retrodev.com>
parents: 1296
diff changeset
296 gl on
1403
87493f585c7f Allow selecting linear or nearet neighbor scaling for both the Open GL and SDL 2 renderers
Michael Pavone <pavone@retrodev.com>
parents: 1402
diff changeset
297 #scaling can be linear (for linear interpolation) or nearest (for nearest neighbor)
87493f585c7f Allow selecting linear or nearet neighbor scaling for both the Open GL and SDL 2 renderers
Michael Pavone <pavone@retrodev.com>
parents: 1402
diff changeset
298 scaling linear
1977
f3cca4b3f17a Allow use of NPOT textures as a config option. Useful for some mobile GPUs
Michael Pavone <pavone@retrodev.com>
parents: 1933
diff changeset
299 #When off, a 512x512 texture is used for each field, when turned on a smaller texture is used
f3cca4b3f17a Allow use of NPOT textures as a config option. Useful for some mobile GPUs
Michael Pavone <pavone@retrodev.com>
parents: 1933
diff changeset
300 #turning this on seems to help performance on certain mobile GPUs like Mali
f3cca4b3f17a Allow use of NPOT textures as a config option. Useful for some mobile GPUs
Michael Pavone <pavone@retrodev.com>
parents: 1933
diff changeset
301 npot_textures off
1184
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
302 ntsc {
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
303 overscan {
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
304 #these values will result in square pixels in H40 mode
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
305 top 2
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
306 bottom 1
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
307 #if you want to completely hide the border instead
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
308 #comment out those two lines and uncomment these
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
309 #top 11
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
310 #bottom 8
1267
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
311
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
312 #these values will completely hide the horizontal border
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
313 left 13
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
314 right 14
1184
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
315 }
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
316 }
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
317 pal {
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
318 overscan {
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
319 #these values will produce the same size border in V30 mode
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
320 #as the default NTSC settings will produce in V24 mode
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
321 #this results in a slightly vertically squished picture
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
322 #which is probably approximately correct on a properly calibrated TV
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
323 top 21
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
324 bottom 17
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
325 #for square pixels and zero border in V30 mode
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
326 #coment out those two lines and uncomment these
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
327 #top 30
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
328 #bottom 24
1267
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
329
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
330 #these values will completely hide the horizontal border
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
331 left 13
3772bb926be5 Initial stab at horizontal border emulation. Only works for H40 and still has a few minor holes to fill
Michael Pavone <pavone@retrodev.com>
parents: 1263
diff changeset
332 right 14
1184
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
333 }
b1147418254a Overscan is now configurable
Michael Pavone <pavone@retrodev.com>
parents: 1017
diff changeset
334 }
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
335 }
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
336
445
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
337 audio {
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
338 rate 48000
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
339 buffer 512
1002
8d032a368dd5 Made low pass filter frequency configurable
Michael Pavone <pavone@retrodev.com>
parents: 948
diff changeset
340 lowpass_cutoff 3390
1933
16a795cababd Make requested sample format configurable
Michael Pavone <pavone@retrodev.com>
parents: 1909
diff changeset
341 #Use f32 for 32-bit floating point, s16 for signed 16-bit integer
16a795cababd Make requested sample format configurable
Michael Pavone <pavone@retrodev.com>
parents: 1909
diff changeset
342 format f32
445
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
343 }
80a9527c812c Add config values for audio sample rate and buffer size
Mike Pavone <pavone@retrodev.com>
parents: 444
diff changeset
344
483
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
345 clocks {
948
f87522554d7b Allow changing the 68K clock divider in the config file
Michael Pavone <pavone@retrodev.com>
parents: 916
diff changeset
346 m68k_divider 7
785
0e5f14d9a579 Prep for 0.3.0 release
Michael Pavone <pavone@retrodev.com>
parents: 645
diff changeset
347 max_cycles 3420
483
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
348 speeds {
1005
580a806aef6a Allow overriding speed 0. May be useful for people that want to use vsync
Michael Pavone <pavone@retrodev.com>
parents: 1004
diff changeset
349 0 100
483
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
350 1 150
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
351 2 200
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
352 3 300
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
353 4 400
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
354 5 25
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
355 6 50
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
356 7 75
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
357 }
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
358 }
3e1573fa22cf Implement turbo/slow motion feature that overclocks or underclocks the entire system at the push of a button
Mike Pavone <pavone@retrodev.com>
parents: 468
diff changeset
359
874
b6842dfb8edf ROM is now run after being selected in menu. Initial path for menu is read from config file.
Michael Pavone <pavone@retrodev.com>
parents: 785
diff changeset
360 ui {
1292
5905593d6828 Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
Michael Pavone <pavone@retrodev.com>
parents: 1267
diff changeset
361 #specifies the ROM that implements the Menu UI
874
b6842dfb8edf ROM is now run after being selected in menu. Initial path for menu is read from config file.
Michael Pavone <pavone@retrodev.com>
parents: 785
diff changeset
362 rom menu.bin
1292
5905593d6828 Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
Michael Pavone <pavone@retrodev.com>
parents: 1267
diff changeset
363 #starting path for ROM browsing, accepts special variables $HOME, $EXEDIR
5905593d6828 Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
Michael Pavone <pavone@retrodev.com>
parents: 1267
diff changeset
364 #and variables defined in the OS environment
5905593d6828 Allow initial_path to contain variable references which allows the default value to be actually specified in the default config file
Michael Pavone <pavone@retrodev.com>
parents: 1267
diff changeset
365 initial_path $HOME
1434
b9dbc823c014 Added a config file option for remembering the last path in the menu
Michael Pavone <pavone@retrodev.com>
parents: 1428
diff changeset
366 #if this is set to on, then the menu will remember the last path when visited
b9dbc823c014 Added a config file option for remembering the last path in the menu
Michael Pavone <pavone@retrodev.com>
parents: 1428
diff changeset
367 #if it's set to off, initial_path will always be used on startup
b9dbc823c014 Added a config file option for remembering the last path in the menu
Michael Pavone <pavone@retrodev.com>
parents: 1428
diff changeset
368 remember_path on
1294
a719e2c98b54 Allow variables in screenshot_path like initial_path
Michael Pavone <pavone@retrodev.com>
parents: 1292
diff changeset
369 #path for storing internal screenshots, accepts the same variables as initial_path
a719e2c98b54 Allow variables in screenshot_path like initial_path
Michael Pavone <pavone@retrodev.com>
parents: 1292
diff changeset
370 screenshot_path $HOME
1263
5f65a16c23ff Implement raw screenshot functionality requested in ticket:10
Michael Pavone <pavone@retrodev.com>
parents: 1254
diff changeset
371 #see strftime for the format specifiers valid in screenshot_template
1533
78b7fc03c7c6 Updated default config to reflect gz/zip/png support
Michael Pavone <pavone@retrodev.com>
parents: 1438
diff changeset
372 screenshot_template blastem_%Y%m%d_%H%M%S.png
1909
508522f08e4d Initial stab at VGM logging support
Michael Pavone <pavone@retrodev.com>
parents: 1900
diff changeset
373 #path for storing VGM recordings, accepts the same variables as initial_path
508522f08e4d Initial stab at VGM logging support
Michael Pavone <pavone@retrodev.com>
parents: 1900
diff changeset
374 vgm_path $HOME
508522f08e4d Initial stab at VGM logging support
Michael Pavone <pavone@retrodev.com>
parents: 1900
diff changeset
375 #see strftime for the format specifiers valid in vgm_template
508522f08e4d Initial stab at VGM logging support
Michael Pavone <pavone@retrodev.com>
parents: 1900
diff changeset
376 vgm_template blastem_%Y%m%d_%H%M%S.vgm
1295
96ad1b9bbb3a Make save directory configurable. Satisfies ticket:4
Michael Pavone <pavone@retrodev.com>
parents: 1294
diff changeset
377 #path template for saving SRAM, EEPROM and savestates
96ad1b9bbb3a Make save directory configurable. Satisfies ticket:4
Michael Pavone <pavone@retrodev.com>
parents: 1294
diff changeset
378 #accepts special variables $HOME, $EXEDIR, $USERDATA, $ROMNAME
96ad1b9bbb3a Make save directory configurable. Satisfies ticket:4
Michael Pavone <pavone@retrodev.com>
parents: 1294
diff changeset
379 save_path $USERDATA/blastem/$ROMNAME
1417
e6efe6b2aee9 Add a file extension filter to the menu
Michael Pavone <pavone@retrodev.com>
parents: 1403
diff changeset
380 #space delimited list of file extensions to filter against in menu
1533
78b7fc03c7c6 Updated default config to reflect gz/zip/png support
Michael Pavone <pavone@retrodev.com>
parents: 1438
diff changeset
381 extensions bin gen md smd sms gg zip gz
1428
2540c05520f2 New savestates are working. New config file option for selecting format states will be saved in. Mostly complete, needs a little more work before release
Michael Pavone <pavone@retrodev.com>
parents: 1418
diff changeset
382 #specifies the preferred save-state format, set to gst for Genecyst compatible states
2540c05520f2 New savestates are working. New config file option for selecting format states will be saved in. Mostly complete, needs a little more work before release
Michael Pavone <pavone@retrodev.com>
parents: 1418
diff changeset
383 state_format native
874
b6842dfb8edf ROM is now run after being selected in menu. Initial path for menu is read from config file.
Michael Pavone <pavone@retrodev.com>
parents: 785
diff changeset
384 }
b6842dfb8edf ROM is now run after being selected in menu. Initial path for menu is read from config file.
Michael Pavone <pavone@retrodev.com>
parents: 785
diff changeset
385
1204
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
386 system {
1568
d14490dee01f Add sync_source to default.cfg and the Nuklear UI
Michael Pavone <pavone@retrodev.com>
parents: 1548
diff changeset
387 #controls how the emulated system is synced to the host
d14490dee01f Add sync_source to default.cfg and the Nuklear UI
Michael Pavone <pavone@retrodev.com>
parents: 1548
diff changeset
388 #video provides the smoothest experience when the host and emulated system have similar refresh rates
d14490dee01f Add sync_source to default.cfg and the Nuklear UI
Michael Pavone <pavone@retrodev.com>
parents: 1548
diff changeset
389 #audio provides lower audio latency, especially when there is a refresh rate mismatch
1659
19331a21da3a Switched default sync source back to audio as the video option is not ready for prime timeop
Mike Pavone <pavone@retrodev.com>
parents: 1641
diff changeset
390 sync_source audio
1568
d14490dee01f Add sync_source to default.cfg and the Nuklear UI
Michael Pavone <pavone@retrodev.com>
parents: 1548
diff changeset
391 #set this to random to debug initialization bugs
1204
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
392 ram_init zero
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
393 default_region U
1548
94ba407a5ec1 Allow MegaWiFi support to be toggled in config file. Defaults to off due to security concerns
Michael Pavone <pavone@retrodev.com>
parents: 1533
diff changeset
394 #controls whether MegaWiFi support is enabled or not
94ba407a5ec1 Allow MegaWiFi support to be toggled in config file. Defaults to off due to security concerns
Michael Pavone <pavone@retrodev.com>
parents: 1533
diff changeset
395 #MegaWiFi allows ROMs to make connections to the internet
94ba407a5ec1 Allow MegaWiFi support to be toggled in config file. Defaults to off due to security concerns
Michael Pavone <pavone@retrodev.com>
parents: 1533
diff changeset
396 #so it should only be enabled for ROMs you trust
94ba407a5ec1 Allow MegaWiFi support to be toggled in config file. Defaults to off due to security concerns
Michael Pavone <pavone@retrodev.com>
parents: 1533
diff changeset
397 megawifi off
1900
93960907807a Added UI for selecting configured model
Michael Pavone <pavone@retrodev.com>
parents: 1665
diff changeset
398 #Model of the emulated Gen/MD system, see systems.cfg for a list of options
93960907807a Added UI for selecting configured model
Michael Pavone <pavone@retrodev.com>
parents: 1665
diff changeset
399 model md1va3
1204
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
400 }
430
7f84090ab1cd Add config file parser and default config file
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
401
1204
d7be5b6e0a8d Added config file option to specify that RAM should be randomly initialized. Moved default_region inside a new "system" parent node in config
Michael Pavone <pavone@retrodev.com>
parents: 1202
diff changeset
402