@@ -138,7 +138,7 @@ struct _analog_port_info
138
138
INT32 minimum ; /* minimum adjusted value */
139
139
INT32 maximum ; /* maximum adjusted value */
140
140
INT32 center ; /* center adjusted value for autocentering */
141
- INT32 reverse_val ; /* value where we subract from to reverse directions */
141
+ INT32 reverse_val ; /* value where we subtract from to reverse directions */
142
142
double scalepos ; /* scale factor to apply to positive adjusted values */
143
143
double scaleneg ; /* scale factor to apply to negative adjusted values */
144
144
double keyscalepos ; /* scale factor to apply to the key delta field when pos */
@@ -148,9 +148,9 @@ struct _analog_port_info
148
148
UINT8 bits ; /* how many bits of resolution are expected? */
149
149
UINT8 absolute ; /* is this an absolute or relative input? */
150
150
UINT8 wraps ; /* does the control wrap around? */
151
- UINT8 one_of_x ; /* is this a 1 of X postional input? */
151
+ UINT8 one_of_x ; /* is this a 1 of X positional input? */
152
152
UINT8 autocenter ; /* autocenter this input? */
153
- UINT8 single_scale ; /* scale joystick diferently if default is between min/max */
153
+ UINT8 single_scale ; /* scale joystick differently if default is between min/max */
154
154
UINT8 interpolate ; /* should we do linear interpolation for mid-frame reads? */
155
155
UINT8 lastdigital ; /* was the last modification caused by a digital form? */
156
156
UINT32 crosshair_pos ; /* position of fake crosshair */
@@ -725,32 +725,32 @@ static const input_port_default_entry default_ports_builtin[] =
725
725
INPUT_PORT_DIGITAL_DEF ( 0 , IPG_OTHER , VOLUME_DOWN , "Volume Down" , SEQ_DEF_1 (KEYCODE_MINUS ) )
726
726
INPUT_PORT_DIGITAL_DEF ( 0 , IPG_OTHER , VOLUME_UP , "Volume Up" , SEQ_DEF_1 (KEYCODE_EQUALS ) )
727
727
728
- INPUT_PORT_ANALOG_DEF ( 1 , IPG_PLAYER1 , PEDAL , "P1 Pedal 1" , SEQ_DEF_1 (JOYCODE_1_ANALOG_X_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_LCONTROL , CODE_OR , JOYCODE_1_BUTTON1 ) )
729
- INPUT_PORT_ANALOG_DEF ( 2 , IPG_PLAYER2 , PEDAL , "P2 Pedal 1" , SEQ_DEF_1 (JOYCODE_2_ANALOG_X_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_A , CODE_OR , JOYCODE_2_BUTTON1 ) )
730
- INPUT_PORT_ANALOG_DEF ( 3 , IPG_PLAYER3 , PEDAL , "P3 Pedal 1" , SEQ_DEF_1 (JOYCODE_3_ANALOG_X_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_RCONTROL , CODE_OR , JOYCODE_3_BUTTON1 ) )
731
- INPUT_PORT_ANALOG_DEF ( 4 , IPG_PLAYER4 , PEDAL , "P4 Pedal 1" , SEQ_DEF_1 (JOYCODE_4_ANALOG_X_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_0_PAD , CODE_OR , JOYCODE_4_BUTTON1 ) )
732
- INPUT_PORT_ANALOG_DEF ( 5 , IPG_PLAYER5 , PEDAL , "P5 Pedal 1" , SEQ_DEF_1 (JOYCODE_5_ANALOG_X_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_5_BUTTON1 ) )
733
- INPUT_PORT_ANALOG_DEF ( 6 , IPG_PLAYER6 , PEDAL , "P6 Pedal 1" , SEQ_DEF_1 (JOYCODE_6_ANALOG_X_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_6_BUTTON1 ) )
734
- INPUT_PORT_ANALOG_DEF ( 7 , IPG_PLAYER7 , PEDAL , "P7 Pedal 1" , SEQ_DEF_1 (JOYCODE_7_ANALOG_X_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_7_BUTTON1 ) )
735
- INPUT_PORT_ANALOG_DEF ( 8 , IPG_PLAYER8 , PEDAL , "P8 Pedal 1" , SEQ_DEF_1 (JOYCODE_8_ANALOG_X_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_8_BUTTON1 ) )
736
-
737
- INPUT_PORT_ANALOG_DEF ( 1 , IPG_PLAYER1 , PEDAL2 , "P1 Pedal 2" , SEQ_DEF_1 (JOYCODE_1_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_LALT , CODE_OR , JOYCODE_1_BUTTON2 ) )
738
- INPUT_PORT_ANALOG_DEF ( 2 , IPG_PLAYER2 , PEDAL2 , "P2 Pedal 2" , SEQ_DEF_1 (JOYCODE_2_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_S , CODE_OR , JOYCODE_2_BUTTON2 ) )
739
- INPUT_PORT_ANALOG_DEF ( 3 , IPG_PLAYER3 , PEDAL2 , "P3 Pedal 2" , SEQ_DEF_1 (JOYCODE_3_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_RSHIFT , CODE_OR , JOYCODE_3_BUTTON2 ) )
740
- INPUT_PORT_ANALOG_DEF ( 4 , IPG_PLAYER4 , PEDAL2 , "P4 Pedal 2" , SEQ_DEF_1 (JOYCODE_4_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_DEL_PAD , CODE_OR , JOYCODE_4_BUTTON2 ) )
741
- INPUT_PORT_ANALOG_DEF ( 5 , IPG_PLAYER5 , PEDAL2 , "P5 Pedal 2" , SEQ_DEF_1 (JOYCODE_5_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_5_BUTTON2 ) )
742
- INPUT_PORT_ANALOG_DEF ( 6 , IPG_PLAYER6 , PEDAL2 , "P6 Pedal 2" , SEQ_DEF_1 (JOYCODE_6_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_6_BUTTON2 ) )
743
- INPUT_PORT_ANALOG_DEF ( 7 , IPG_PLAYER7 , PEDAL2 , "P7 Pedal 2" , SEQ_DEF_1 (JOYCODE_7_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_7_BUTTON2 ) )
744
- INPUT_PORT_ANALOG_DEF ( 8 , IPG_PLAYER8 , PEDAL2 , "P8 Pedal 2" , SEQ_DEF_1 (JOYCODE_8_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_8_BUTTON2 ) )
745
-
746
- INPUT_PORT_ANALOG_DEF ( 1 , IPG_PLAYER1 , PEDAL3 , "P1 Pedal 3" , SEQ_DEF_1 ( JOYCODE_1_ANALOG_Z_NEG ) , SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_SPACE , CODE_OR , JOYCODE_1_BUTTON3 ) )
747
- INPUT_PORT_ANALOG_DEF ( 2 , IPG_PLAYER2 , PEDAL3 , "P2 Pedal 3" , SEQ_DEF_1 ( JOYCODE_2_ANALOG_Z_NEG ) , SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_Q , CODE_OR , JOYCODE_2_BUTTON3 ) )
748
- INPUT_PORT_ANALOG_DEF ( 3 , IPG_PLAYER3 , PEDAL3 , "P3 Pedal 3" , SEQ_DEF_1 ( JOYCODE_3_ANALOG_Z_NEG ) , SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_ENTER , CODE_OR , JOYCODE_3_BUTTON3 ) )
749
- INPUT_PORT_ANALOG_DEF ( 4 , IPG_PLAYER4 , PEDAL3 , "P4 Pedal 3" , SEQ_DEF_1 ( JOYCODE_4_ANALOG_Z_NEG ) , SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_ENTER_PAD , CODE_OR , JOYCODE_4_BUTTON3 ) )
750
- INPUT_PORT_ANALOG_DEF ( 5 , IPG_PLAYER5 , PEDAL3 , "P5 Pedal 3" , SEQ_DEF_1 ( JOYCODE_5_ANALOG_Z_NEG ) , SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_5_BUTTON3 ) )
751
- INPUT_PORT_ANALOG_DEF ( 6 , IPG_PLAYER6 , PEDAL3 , "P6 Pedal 3" , SEQ_DEF_1 ( JOYCODE_6_ANALOG_Z_NEG ) , SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_6_BUTTON3 ) )
752
- INPUT_PORT_ANALOG_DEF ( 7 , IPG_PLAYER7 , PEDAL3 , "P7 Pedal 3" , SEQ_DEF_1 ( JOYCODE_7_ANALOG_Z_NEG ) , SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_7_BUTTON3 ) )
753
- INPUT_PORT_ANALOG_DEF ( 8 , IPG_PLAYER8 , PEDAL3 , "P8 Pedal 3" , SEQ_DEF_1 ( JOYCODE_8_ANALOG_Z_NEG ) , SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_8_BUTTON3 ) )
728
+ INPUT_PORT_ANALOG_DEF ( 1 , IPG_PLAYER1 , PEDAL , "P1 Pedal 1" , SEQ_DEF_1 (JOYCODE_1_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_LCONTROL , CODE_OR , JOYCODE_1_BUTTON1 ) )
729
+ INPUT_PORT_ANALOG_DEF ( 2 , IPG_PLAYER2 , PEDAL , "P2 Pedal 1" , SEQ_DEF_1 (JOYCODE_2_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_A , CODE_OR , JOYCODE_2_BUTTON1 ) )
730
+ INPUT_PORT_ANALOG_DEF ( 3 , IPG_PLAYER3 , PEDAL , "P3 Pedal 1" , SEQ_DEF_1 (JOYCODE_3_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_RCONTROL , CODE_OR , JOYCODE_3_BUTTON1 ) )
731
+ INPUT_PORT_ANALOG_DEF ( 4 , IPG_PLAYER4 , PEDAL , "P4 Pedal 1" , SEQ_DEF_1 (JOYCODE_4_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_0_PAD , CODE_OR , JOYCODE_4_BUTTON1 ) )
732
+ INPUT_PORT_ANALOG_DEF ( 5 , IPG_PLAYER5 , PEDAL , "P5 Pedal 1" , SEQ_DEF_1 (JOYCODE_5_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_5_BUTTON1 ) )
733
+ INPUT_PORT_ANALOG_DEF ( 6 , IPG_PLAYER6 , PEDAL , "P6 Pedal 1" , SEQ_DEF_1 (JOYCODE_6_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_6_BUTTON1 ) )
734
+ INPUT_PORT_ANALOG_DEF ( 7 , IPG_PLAYER7 , PEDAL , "P7 Pedal 1" , SEQ_DEF_1 (JOYCODE_7_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_7_BUTTON1 ) )
735
+ INPUT_PORT_ANALOG_DEF ( 8 , IPG_PLAYER8 , PEDAL , "P8 Pedal 1" , SEQ_DEF_1 (JOYCODE_8_ANALOG_Y_NEG ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_8_BUTTON1 ) )
736
+
737
+ INPUT_PORT_ANALOG_DEF ( 1 , IPG_PLAYER1 , PEDAL2 , "P1 Pedal 2" , SEQ_DEF_1 (JOYCODE_1_ANALOG_Y_POS ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_LALT , CODE_OR , JOYCODE_1_BUTTON2 ) )
738
+ INPUT_PORT_ANALOG_DEF ( 2 , IPG_PLAYER2 , PEDAL2 , "P2 Pedal 2" , SEQ_DEF_1 (JOYCODE_2_ANALOG_Y_POS ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_S , CODE_OR , JOYCODE_2_BUTTON2 ) )
739
+ INPUT_PORT_ANALOG_DEF ( 3 , IPG_PLAYER3 , PEDAL2 , "P3 Pedal 2" , SEQ_DEF_1 (JOYCODE_3_ANALOG_Y_POS ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_RSHIFT , CODE_OR , JOYCODE_3_BUTTON2 ) )
740
+ INPUT_PORT_ANALOG_DEF ( 4 , IPG_PLAYER4 , PEDAL2 , "P4 Pedal 2" , SEQ_DEF_1 (JOYCODE_4_ANALOG_Y_POS ), SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_DEL_PAD , CODE_OR , JOYCODE_4_BUTTON2 ) )
741
+ INPUT_PORT_ANALOG_DEF ( 5 , IPG_PLAYER5 , PEDAL2 , "P5 Pedal 2" , SEQ_DEF_1 (JOYCODE_5_ANALOG_Y_POS ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_5_BUTTON2 ) )
742
+ INPUT_PORT_ANALOG_DEF ( 6 , IPG_PLAYER6 , PEDAL2 , "P6 Pedal 2" , SEQ_DEF_1 (JOYCODE_6_ANALOG_Y_POS ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_6_BUTTON2 ) )
743
+ INPUT_PORT_ANALOG_DEF ( 7 , IPG_PLAYER7 , PEDAL2 , "P7 Pedal 2" , SEQ_DEF_1 (JOYCODE_7_ANALOG_Y_POS ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_7_BUTTON2 ) )
744
+ INPUT_PORT_ANALOG_DEF ( 8 , IPG_PLAYER8 , PEDAL2 , "P8 Pedal 2" , SEQ_DEF_1 (JOYCODE_8_ANALOG_Y_POS ), SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_8_BUTTON2 ) )
745
+
746
+ INPUT_PORT_ANALOG_DEF ( 1 , IPG_PLAYER1 , PEDAL3 , "P1 Pedal 3" , SEQ_DEF_0 , SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_SPACE , CODE_OR , JOYCODE_1_BUTTON3 ) )
747
+ INPUT_PORT_ANALOG_DEF ( 2 , IPG_PLAYER2 , PEDAL3 , "P2 Pedal 3" , SEQ_DEF_0 , SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_Q , CODE_OR , JOYCODE_2_BUTTON3 ) )
748
+ INPUT_PORT_ANALOG_DEF ( 3 , IPG_PLAYER3 , PEDAL3 , "P3 Pedal 3" , SEQ_DEF_0 , SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_ENTER , CODE_OR , JOYCODE_3_BUTTON3 ) )
749
+ INPUT_PORT_ANALOG_DEF ( 4 , IPG_PLAYER4 , PEDAL3 , "P4 Pedal 3" , SEQ_DEF_0 , SEQ_DEF_0 , SEQ_DEF_3 (KEYCODE_ENTER_PAD , CODE_OR , JOYCODE_4_BUTTON3 ) )
750
+ INPUT_PORT_ANALOG_DEF ( 5 , IPG_PLAYER5 , PEDAL3 , "P5 Pedal 3" , SEQ_DEF_0 , SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_5_BUTTON3 ) )
751
+ INPUT_PORT_ANALOG_DEF ( 6 , IPG_PLAYER6 , PEDAL3 , "P6 Pedal 3" , SEQ_DEF_0 , SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_6_BUTTON3 ) )
752
+ INPUT_PORT_ANALOG_DEF ( 7 , IPG_PLAYER7 , PEDAL3 , "P7 Pedal 3" , SEQ_DEF_0 , SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_7_BUTTON3 ) )
753
+ INPUT_PORT_ANALOG_DEF ( 8 , IPG_PLAYER8 , PEDAL3 , "P8 Pedal 3" , SEQ_DEF_0 , SEQ_DEF_0 , SEQ_DEF_1 (JOYCODE_8_BUTTON3 ) )
754
754
755
755
INPUT_PORT_ANALOG_DEF ( 1 , IPG_PLAYER1 , PADDLE , "Paddle" , SEQ_DEF_3 (MOUSECODE_1_ANALOG_X , CODE_OR , JOYCODE_1_ANALOG_X ), SEQ_DEF_3 (KEYCODE_LEFT , CODE_OR , JOYCODE_1_LEFT ), SEQ_DEF_3 (KEYCODE_RIGHT , CODE_OR , JOYCODE_1_RIGHT ) )
756
756
INPUT_PORT_ANALOG_DEF ( 2 , IPG_PLAYER2 , PADDLE , "Paddle 2" , SEQ_DEF_3 (MOUSECODE_2_ANALOG_X , CODE_OR , JOYCODE_2_ANALOG_X ), SEQ_DEF_3 (KEYCODE_D , CODE_OR , JOYCODE_2_LEFT ), SEQ_DEF_3 (KEYCODE_G , CODE_OR , JOYCODE_2_RIGHT ) )
0 commit comments