391 RegisterBind(DefaultBinds, 'down', '+down'); |
391 RegisterBind(DefaultBinds, 'down', '+down'); |
392 RegisterBind(DefaultBinds, 'left', '+left'); |
392 RegisterBind(DefaultBinds, 'left', '+left'); |
393 RegisterBind(DefaultBinds, 'right', '+right'); |
393 RegisterBind(DefaultBinds, 'right', '+right'); |
394 RegisterBind(DefaultBinds, 'left_shift', '+precise'); |
394 RegisterBind(DefaultBinds, 'left_shift', '+precise'); |
395 |
395 |
396 |
396 // Default controls for first connected controller |
397 RegisterBind(DefaultBinds, 'j0a0u', '+left'); |
397 { NOTE: This is provided for convenience so players |
398 RegisterBind(DefaultBinds, 'j0a0d', '+right'); |
398 don't have to set-up the controller entirely in a new install. |
399 RegisterBind(DefaultBinds, 'j0a1u', '+up'); |
399 It's not ideal, so players are still encourages to |
400 RegisterBind(DefaultBinds, 'j0a1d', '+down'); |
400 set up things manually. } |
|
401 // Essential controls |
|
402 RegisterBind(DefaultBinds, 'j0h0r', '+right'); |
|
403 RegisterBind(DefaultBinds, 'j0h0l', '+left'); |
|
404 RegisterBind(DefaultBinds, 'j0h0u', '+up'); |
|
405 RegisterBind(DefaultBinds, 'j0h0d', '+down'); |
|
406 RegisterBind(DefaultBinds, 'j0b0', 'ljump'); |
|
407 RegisterBind(DefaultBinds, 'j0b1', 'hjump'); |
|
408 RegisterBind(DefaultBinds, 'j0b2', '+attack'); |
|
409 RegisterBind(DefaultBinds, 'j0b3', 'ammomenu'); |
|
410 RegisterBind(DefaultBinds, 'j0b4', '+precise'); |
|
411 RegisterBind(DefaultBinds, 'j0b5', 'put'); |
|
412 RegisterBind(DefaultBinds, 'j0b6', 'switch'); |
|
413 // TODO: Add controller-friendly way to change timer |
|
414 |
|
415 // Cursor movement (also essential) |
|
416 RegisterBind(DefaultBinds, 'j0h1r', '+cur_r'); |
|
417 RegisterBind(DefaultBinds, 'j0h1l', '+cur_l'); |
|
418 RegisterBind(DefaultBinds, 'j0h1d', '+cur_d'); |
|
419 RegisterBind(DefaultBinds, 'j0h1u', '+cur_u'); |
|
420 |
|
421 RegisterBind(DefaultBinds, 'j0a0u', '+cur_r'); |
|
422 RegisterBind(DefaultBinds, 'j0a0d', '+cur_l'); |
|
423 RegisterBind(DefaultBinds, 'j0a1u', '+cur_d'); |
|
424 RegisterBind(DefaultBinds, 'j0a1d', '+cur_u'); |
|
425 |
|
426 // Additional controls |
|
427 RegisterBind(DefaultBinds, 'j0b7', 'findhh'); |
|
428 RegisterBind(DefaultBinds, 'j0b8', '+mission'); |
|
429 |
401 for i:= 1 to 10 do RegisterBind(DefaultBinds, 'f'+IntToStr(i), 'slot '+char(48+i)); |
430 for i:= 1 to 10 do RegisterBind(DefaultBinds, 'f'+IntToStr(i), 'slot '+char(48+i)); |
402 for i:= 1 to 5 do RegisterBind(DefaultBinds, IntToStr(i), 'timer '+IntToStr(i)); |
431 for i:= 1 to 5 do RegisterBind(DefaultBinds, IntToStr(i), 'timer '+IntToStr(i)); |
403 |
432 |
404 loadBinds('dbind', cPathz[ptConfig] + '/settings.ini'); |
433 loadBinds('dbind', cPathz[ptConfig] + '/settings.ini'); |
405 end; |
434 end; |