|
107 | 107 | "version": 1, |
108 | 108 | "engineInputModel": "src/engine/input/InputMap", |
109 | 109 | "actions": [ |
110 | | - { |
111 | | - "action": "cancel", |
112 | | - "label": "Cancel", |
113 | | - "inputs": [] |
114 | | - }, |
115 | | - { |
116 | | - "action": "confirm", |
117 | | - "label": "Confirm", |
118 | | - "inputs": [] |
119 | | - }, |
120 | | - { |
121 | | - "action": "fire", |
122 | | - "label": "Fire", |
123 | | - "inputs": [] |
124 | | - }, |
125 | | - { |
126 | | - "action": "interact", |
127 | | - "label": "Interact", |
128 | | - "inputs": [] |
129 | | - }, |
130 | | - { |
131 | | - "action": "jump", |
132 | | - "label": "Jump", |
133 | | - "inputs": [] |
134 | | - }, |
135 | | - { |
136 | | - "action": "menu", |
137 | | - "label": "Menu", |
138 | | - "inputs": [] |
139 | | - }, |
140 | | - { |
141 | | - "action": "moveDown", |
142 | | - "label": "Move Down", |
143 | | - "inputs": [] |
144 | | - }, |
145 | 110 | { |
146 | 111 | "action": "moveLeft", |
147 | 112 | "label": "Move Left", |
148 | | - "inputs": [] |
| 113 | + "inputs": [ |
| 114 | + { |
| 115 | + "source": "keyboard", |
| 116 | + "binding": "ArrowLeft:KeyboardHold", |
| 117 | + "label": "Keyboard ArrowLeft Hold", |
| 118 | + "engine": "KeyboardState" |
| 119 | + }, |
| 120 | + { |
| 121 | + "source": "keyboard", |
| 122 | + "binding": "KeyA:KeyboardHold", |
| 123 | + "label": "Keyboard KeyA Hold", |
| 124 | + "engine": "KeyboardState" |
| 125 | + }, |
| 126 | + { |
| 127 | + "source": "gamepad", |
| 128 | + "binding": "Pad0:Button14:GameControllerDPad", |
| 129 | + "label": "Game Controller DPad Left DPad", |
| 130 | + "engine": "GamepadInputAdapter" |
| 131 | + }, |
| 132 | + { |
| 133 | + "source": "gamepad", |
| 134 | + "binding": "Pad0:Axis0-:GameControllerStick", |
| 135 | + "label": "Game Controller Axis 0- Stick", |
| 136 | + "engine": "GamepadInputAdapter" |
| 137 | + } |
| 138 | + ] |
149 | 139 | }, |
150 | 140 | { |
151 | 141 | "action": "moveRight", |
152 | 142 | "label": "Move Right", |
153 | | - "inputs": [] |
| 143 | + "inputs": [ |
| 144 | + { |
| 145 | + "source": "keyboard", |
| 146 | + "binding": "ArrowRight:KeyboardHold", |
| 147 | + "label": "Keyboard ArrowRight Hold", |
| 148 | + "engine": "KeyboardState" |
| 149 | + }, |
| 150 | + { |
| 151 | + "source": "keyboard", |
| 152 | + "binding": "KeyD:KeyboardHold", |
| 153 | + "label": "Keyboard KeyD Hold", |
| 154 | + "engine": "KeyboardState" |
| 155 | + }, |
| 156 | + { |
| 157 | + "source": "gamepad", |
| 158 | + "binding": "Pad0:Button15:GameControllerDPad", |
| 159 | + "label": "Game Controller DPad Right DPad", |
| 160 | + "engine": "GamepadInputAdapter" |
| 161 | + }, |
| 162 | + { |
| 163 | + "source": "gamepad", |
| 164 | + "binding": "Pad0:Axis0+:GameControllerStick", |
| 165 | + "label": "Game Controller Axis 0+ Stick", |
| 166 | + "engine": "GamepadInputAdapter" |
| 167 | + } |
| 168 | + ] |
154 | 169 | }, |
155 | 170 | { |
156 | 171 | "action": "moveUp", |
157 | 172 | "label": "Move Up", |
158 | | - "inputs": [] |
159 | | - }, |
160 | | - { |
161 | | - "action": "pause", |
162 | | - "label": "Pause", |
163 | | - "inputs": [] |
164 | | - }, |
165 | | - { |
166 | | - "action": "primaryAction", |
167 | | - "label": "Primary Action", |
168 | | - "inputs": [] |
169 | | - }, |
170 | | - { |
171 | | - "action": "rotateLeft", |
172 | | - "label": "Rotate Left", |
173 | | - "inputs": [] |
174 | | - }, |
175 | | - { |
176 | | - "action": "rotateRight", |
177 | | - "label": "Rotate Right", |
178 | | - "inputs": [] |
| 173 | + "inputs": [ |
| 174 | + { |
| 175 | + "source": "keyboard", |
| 176 | + "binding": "ArrowUp:KeyboardHold", |
| 177 | + "label": "Keyboard ArrowUp Hold", |
| 178 | + "engine": "KeyboardState" |
| 179 | + }, |
| 180 | + { |
| 181 | + "source": "keyboard", |
| 182 | + "binding": "KeyW:KeyboardHold", |
| 183 | + "label": "Keyboard KeyW Hold", |
| 184 | + "engine": "KeyboardState" |
| 185 | + }, |
| 186 | + { |
| 187 | + "source": "gamepad", |
| 188 | + "binding": "Pad0:Button12:GameControllerDPad", |
| 189 | + "label": "Game Controller DPad Up DPad", |
| 190 | + "engine": "GamepadInputAdapter" |
| 191 | + }, |
| 192 | + { |
| 193 | + "source": "gamepad", |
| 194 | + "binding": "Pad0:Axis1-:GameControllerStick", |
| 195 | + "label": "Game Controller Axis 1- Stick", |
| 196 | + "engine": "GamepadInputAdapter" |
| 197 | + } |
| 198 | + ] |
179 | 199 | }, |
180 | 200 | { |
181 | | - "action": "secondaryAction", |
182 | | - "label": "Secondary Action", |
183 | | - "inputs": [] |
184 | | - }, |
185 | | - { |
186 | | - "action": "select", |
187 | | - "label": "Select", |
188 | | - "inputs": [] |
| 201 | + "action": "moveDown", |
| 202 | + "label": "Move Down", |
| 203 | + "inputs": [ |
| 204 | + { |
| 205 | + "source": "keyboard", |
| 206 | + "binding": "ArrowDown:KeyboardHold", |
| 207 | + "label": "Keyboard ArrowDown Hold", |
| 208 | + "engine": "KeyboardState" |
| 209 | + }, |
| 210 | + { |
| 211 | + "source": "keyboard", |
| 212 | + "binding": "KeyS:KeyboardHold", |
| 213 | + "label": "Keyboard KeyS Hold", |
| 214 | + "engine": "KeyboardState" |
| 215 | + }, |
| 216 | + { |
| 217 | + "source": "gamepad", |
| 218 | + "binding": "Pad0:Button13:GameControllerDPad", |
| 219 | + "label": "Game Controller DPad Down DPad", |
| 220 | + "engine": "GamepadInputAdapter" |
| 221 | + }, |
| 222 | + { |
| 223 | + "source": "gamepad", |
| 224 | + "binding": "Pad0:Axis1+:GameControllerStick", |
| 225 | + "label": "Game Controller Axis 1+ Stick", |
| 226 | + "engine": "GamepadInputAdapter" |
| 227 | + } |
| 228 | + ] |
189 | 229 | }, |
190 | 230 | { |
191 | 231 | "action": "start", |
192 | 232 | "label": "Start", |
193 | | - "inputs": [] |
| 233 | + "inputs": [ |
| 234 | + { |
| 235 | + "source": "keyboard", |
| 236 | + "binding": "Enter", |
| 237 | + "label": "Keyboard Enter Press", |
| 238 | + "engine": "KeyboardState" |
| 239 | + }, |
| 240 | + { |
| 241 | + "source": "keyboard", |
| 242 | + "binding": "Space", |
| 243 | + "label": "Keyboard Space Press", |
| 244 | + "engine": "KeyboardState" |
| 245 | + }, |
| 246 | + { |
| 247 | + "source": "gamepad", |
| 248 | + "binding": "Pad0:Button0:GameControllerButtonPress", |
| 249 | + "label": "Game Controller Button 0 Btn Press", |
| 250 | + "engine": "GamepadInputAdapter" |
| 251 | + }, |
| 252 | + { |
| 253 | + "source": "gamepad", |
| 254 | + "binding": "Pad0:Button9:GameControllerButtonPress", |
| 255 | + "label": "Game Controller Button 9 Btn Press", |
| 256 | + "engine": "GamepadInputAdapter" |
| 257 | + } |
| 258 | + ] |
194 | 259 | }, |
195 | 260 | { |
196 | | - "action": "thrust", |
197 | | - "label": "Thrust", |
198 | | - "inputs": [] |
| 261 | + "action": "reset", |
| 262 | + "label": "Reset", |
| 263 | + "inputs": [ |
| 264 | + { |
| 265 | + "source": "keyboard", |
| 266 | + "binding": "KeyR", |
| 267 | + "label": "Keyboard KeyR Press", |
| 268 | + "engine": "KeyboardState" |
| 269 | + }, |
| 270 | + { |
| 271 | + "source": "gamepad", |
| 272 | + "binding": "Pad0:Button1:GameControllerButtonPress", |
| 273 | + "label": "Game Controller Button 1 Btn Press", |
| 274 | + "engine": "GamepadInputAdapter" |
| 275 | + } |
| 276 | + ] |
| 277 | + }, |
| 278 | + { |
| 279 | + "action": "pause", |
| 280 | + "label": "Pause", |
| 281 | + "inputs": [ |
| 282 | + { |
| 283 | + "source": "keyboard", |
| 284 | + "binding": "KeyP", |
| 285 | + "label": "Keyboard KeyP Press", |
| 286 | + "engine": "KeyboardState" |
| 287 | + } |
| 288 | + ] |
199 | 289 | } |
200 | 290 | ] |
201 | 291 | } |
|
0 commit comments