Browse Source

Ajout inputs manette

shader
Figg 4 years ago
parent
commit
f2a608fdfb
2 changed files with 163 additions and 19 deletions
  1. 143
    0
      FreeCam/Assets/Controls.inputactions
  2. 20
    19
      FreeCam/Assets/Player.prefab

+ 143
- 0
FreeCam/Assets/Controls.inputactions View File

158
                     "isPartOfComposite": true
158
                     "isPartOfComposite": true
159
                 },
159
                 },
160
                 {
160
                 {
161
+                    "name": "LeftStick",
162
+                    "id": "cb6bfab6-d59d-440d-9b84-e96befd5162a",
163
+                    "path": "2DVector",
164
+                    "interactions": "",
165
+                    "processors": "",
166
+                    "groups": "",
167
+                    "action": "Movement",
168
+                    "isComposite": true,
169
+                    "isPartOfComposite": false
170
+                },
171
+                {
172
+                    "name": "up",
173
+                    "id": "802477a2-89d6-471d-b894-fb13edd0dfb0",
174
+                    "path": "<Gamepad>/leftStick/up",
175
+                    "interactions": "",
176
+                    "processors": "",
177
+                    "groups": "",
178
+                    "action": "Movement",
179
+                    "isComposite": false,
180
+                    "isPartOfComposite": true
181
+                },
182
+                {
183
+                    "name": "down",
184
+                    "id": "1384a4f0-0b2a-496e-8cd2-8df844bba293",
185
+                    "path": "<Gamepad>/leftStick/down",
186
+                    "interactions": "",
187
+                    "processors": "",
188
+                    "groups": "",
189
+                    "action": "Movement",
190
+                    "isComposite": false,
191
+                    "isPartOfComposite": true
192
+                },
193
+                {
194
+                    "name": "left",
195
+                    "id": "55fdefb5-540c-4bbc-9f92-0880f3969920",
196
+                    "path": "<Gamepad>/leftStick/left",
197
+                    "interactions": "",
198
+                    "processors": "",
199
+                    "groups": "",
200
+                    "action": "Movement",
201
+                    "isComposite": false,
202
+                    "isPartOfComposite": true
203
+                },
204
+                {
205
+                    "name": "right",
206
+                    "id": "330bd10f-55c0-43c4-8c43-4d01624ec4a7",
207
+                    "path": "<Gamepad>/leftStick/right",
208
+                    "interactions": "",
209
+                    "processors": "",
210
+                    "groups": "",
211
+                    "action": "Movement",
212
+                    "isComposite": false,
213
+                    "isPartOfComposite": true
214
+                },
215
+                {
161
                     "name": "",
216
                     "name": "",
162
                     "id": "b00386e1-8b81-4b23-add0-14dfd7c1fc48",
217
                     "id": "b00386e1-8b81-4b23-add0-14dfd7c1fc48",
163
                     "path": "<Mouse>/delta",
218
                     "path": "<Mouse>/delta",
169
                     "isPartOfComposite": false
224
                     "isPartOfComposite": false
170
                 },
225
                 },
171
                 {
226
                 {
227
+                    "name": "RightStick",
228
+                    "id": "8bf2f081-6008-4d90-91d4-7c8e4aaa222f",
229
+                    "path": "2DVector(mode=1)",
230
+                    "interactions": "",
231
+                    "processors": "ScaleVector2(x=5,y=5)",
232
+                    "groups": "",
233
+                    "action": "Look",
234
+                    "isComposite": true,
235
+                    "isPartOfComposite": false
236
+                },
237
+                {
238
+                    "name": "up",
239
+                    "id": "866d01b6-7ab7-43fa-8faf-97ecf71106ca",
240
+                    "path": "<Gamepad>/rightStick/up",
241
+                    "interactions": "",
242
+                    "processors": "",
243
+                    "groups": "",
244
+                    "action": "Look",
245
+                    "isComposite": false,
246
+                    "isPartOfComposite": true
247
+                },
248
+                {
249
+                    "name": "down",
250
+                    "id": "a201db96-0788-48c6-9f03-10a304cf7b3f",
251
+                    "path": "<Gamepad>/rightStick/down",
252
+                    "interactions": "",
253
+                    "processors": "",
254
+                    "groups": "",
255
+                    "action": "Look",
256
+                    "isComposite": false,
257
+                    "isPartOfComposite": true
258
+                },
259
+                {
260
+                    "name": "left",
261
+                    "id": "2ddf98ff-08ec-4160-a957-6419c09c893f",
262
+                    "path": "<Gamepad>/rightStick/left",
263
+                    "interactions": "",
264
+                    "processors": "",
265
+                    "groups": "",
266
+                    "action": "Look",
267
+                    "isComposite": false,
268
+                    "isPartOfComposite": true
269
+                },
270
+                {
271
+                    "name": "right",
272
+                    "id": "3a5d4bad-ed96-4d2e-852c-30a19b4534e1",
273
+                    "path": "<Gamepad>/rightStick/right",
274
+                    "interactions": "",
275
+                    "processors": "",
276
+                    "groups": "",
277
+                    "action": "Look",
278
+                    "isComposite": false,
279
+                    "isPartOfComposite": true
280
+                },
281
+                {
172
                     "name": "",
282
                     "name": "",
173
                     "id": "a629ccdb-feec-4006-99da-ecd1fc2a582a",
283
                     "id": "a629ccdb-feec-4006-99da-ecd1fc2a582a",
174
                     "path": "<Mouse>/leftButton",
284
                     "path": "<Mouse>/leftButton",
181
                 },
291
                 },
182
                 {
292
                 {
183
                     "name": "",
293
                     "name": "",
294
+                    "id": "3e7e30ad-939c-4c2f-b103-a38c34876f68",
295
+                    "path": "<Gamepad>/buttonSouth",
296
+                    "interactions": "",
297
+                    "processors": "",
298
+                    "groups": "",
299
+                    "action": "Place Block",
300
+                    "isComposite": false,
301
+                    "isPartOfComposite": false
302
+                },
303
+                {
304
+                    "name": "",
184
                     "id": "8f6ba03e-dbdb-42ce-be6f-5550c0a2a444",
305
                     "id": "8f6ba03e-dbdb-42ce-be6f-5550c0a2a444",
185
                     "path": "<Mouse>/rightButton",
306
                     "path": "<Mouse>/rightButton",
186
                     "interactions": "",
307
                     "interactions": "",
192
                 },
313
                 },
193
                 {
314
                 {
194
                     "name": "",
315
                     "name": "",
316
+                    "id": "688248a0-7b0e-4e31-8c1a-d59a24fe3312",
317
+                    "path": "<Gamepad>/rightTrigger",
318
+                    "interactions": "",
319
+                    "processors": "",
320
+                    "groups": "",
321
+                    "action": "Toggle Preview Mode",
322
+                    "isComposite": false,
323
+                    "isPartOfComposite": false
324
+                },
325
+                {
326
+                    "name": "",
195
                     "id": "171894bd-9d65-472e-8e83-7cf79f2057ab",
327
                     "id": "171894bd-9d65-472e-8e83-7cf79f2057ab",
196
                     "path": "<Keyboard>/leftShift",
328
                     "path": "<Keyboard>/leftShift",
197
                     "interactions": "",
329
                     "interactions": "",
200
                     "action": "Sprint",
332
                     "action": "Sprint",
201
                     "isComposite": false,
333
                     "isComposite": false,
202
                     "isPartOfComposite": false
334
                     "isPartOfComposite": false
335
+                },
336
+                {
337
+                    "name": "",
338
+                    "id": "83ad7e9d-9c8e-4f3f-85a8-fbbe926f0908",
339
+                    "path": "<Gamepad>/leftTrigger",
340
+                    "interactions": "",
341
+                    "processors": "",
342
+                    "groups": "",
343
+                    "action": "Sprint",
344
+                    "isComposite": false,
345
+                    "isPartOfComposite": false
203
                 }
346
                 }
204
             ]
347
             ]
205
         }
348
         }

+ 20
- 19
FreeCam/Assets/Player.prefab View File

255
   serializedVersion: 6
255
   serializedVersion: 6
256
   m_Component:
256
   m_Component:
257
   - component: {fileID: 562755809799988214}
257
   - component: {fileID: 562755809799988214}
258
-  - component: {fileID: 562755809799988217}
259
   - component: {fileID: 562755809799988216}
258
   - component: {fileID: 562755809799988216}
260
   - component: {fileID: 5739138180788424124}
259
   - component: {fileID: 5739138180788424124}
260
+  - component: {fileID: 562755809799988217}
261
   - component: {fileID: 6193258497320629589}
261
   - component: {fileID: 6193258497320629589}
262
   m_Layer: 0
262
   m_Layer: 0
263
   m_Name: Player
263
   m_Name: Player
282
   m_Father: {fileID: 0}
282
   m_Father: {fileID: 0}
283
   m_RootOrder: 0
283
   m_RootOrder: 0
284
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
284
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
285
---- !u!114 &562755809799988217
286
-MonoBehaviour:
287
-  m_ObjectHideFlags: 0
288
-  m_CorrespondingSourceObject: {fileID: 0}
289
-  m_PrefabInstance: {fileID: 0}
290
-  m_PrefabAsset: {fileID: 0}
291
-  m_GameObject: {fileID: 562755809799988215}
292
-  m_Enabled: 1
293
-  m_EditorHideFlags: 0
294
-  m_Script: {fileID: 11500000, guid: 05873a6569d195c4fbd5d284132429ad, type: 3}
295
-  m_Name: 
296
-  m_EditorClassIdentifier: 
297
-  moveSpeed: 10
298
-  ghost: 1
299
-  XAxisSensitivity: 30
300
-  YAxisSensitivity: 30
301
-  MaxXAngle: 60
302
 --- !u!114 &562755809799988216
285
 --- !u!114 &562755809799988216
303
 MonoBehaviour:
286
 MonoBehaviour:
304
   m_ObjectHideFlags: 0
287
   m_ObjectHideFlags: 0
347
   m_SkinWidth: 0.08
330
   m_SkinWidth: 0.08
348
   m_MinMoveDistance: 0.001
331
   m_MinMoveDistance: 0.001
349
   m_Center: {x: 0, y: 0, z: 0}
332
   m_Center: {x: 0, y: 0, z: 0}
333
+--- !u!114 &562755809799988217
334
+MonoBehaviour:
335
+  m_ObjectHideFlags: 0
336
+  m_CorrespondingSourceObject: {fileID: 0}
337
+  m_PrefabInstance: {fileID: 0}
338
+  m_PrefabAsset: {fileID: 0}
339
+  m_GameObject: {fileID: 562755809799988215}
340
+  m_Enabled: 1
341
+  m_EditorHideFlags: 0
342
+  m_Script: {fileID: 11500000, guid: 05873a6569d195c4fbd5d284132429ad, type: 3}
343
+  m_Name: 
344
+  m_EditorClassIdentifier: 
345
+  moveSpeed: 10
346
+  sprintSpeed: 30
347
+  ghost: 1
348
+  XAxisSensitivity: 30
349
+  YAxisSensitivity: 30
350
+  MaxXAngle: 60
350
 --- !u!114 &6193258497320629589
351
 --- !u!114 &6193258497320629589
351
 MonoBehaviour:
352
 MonoBehaviour:
352
   m_ObjectHideFlags: 0
353
   m_ObjectHideFlags: 0
359
   m_Script: {fileID: 11500000, guid: b78dfde35e58d1e4c858653eaf06ea64, type: 3}
360
   m_Script: {fileID: 11500000, guid: b78dfde35e58d1e4c858653eaf06ea64, type: 3}
360
   m_Name: 
361
   m_Name: 
361
   m_EditorClassIdentifier: 
362
   m_EditorClassIdentifier: 
362
-  blockToPlace: {fileID: 3300812737117657924, guid: 7b30a4c90d614f747872471cf43b8e56, type: 3}
363
+  _blockToPlace: {fileID: 0}
363
   spawnDistance: 3
364
   spawnDistance: 3

Loading…
Cancel
Save