Guest User

Untitled

a guest
Dec 31st, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 17.91 KB | None | 0 0
  1. //
  2. //  DEFAULT UIKEYS.TXT FOR SPRING
  3. //  -----------------------------
  4. //
  5. //
  6. //  Quick Notes:
  7. //
  8. //  1. The built-in default bindings are always loaded. If you wish
  9. //     to override them, use the unbindall and unbind commands
  10. //     to delete them at the beginning of your 'uikeys.txt'.
  11. //
  12. //  2. More then one action can be bound to a specific keyset. The
  13. //     actions for any given keyset are tried in the order that they
  14. //     were bound. The first currently available command that matches
  15. //     an action is used.
  16. //
  17. //  3. As a slight modification to the above note, keysets that use
  18. //     the 'Any' modifier are tried after those that do not use it.
  19. //
  20. //  4. A keyset using the Shift modifier should be bound with its
  21. //     unshifted key  (ex: bind  "Shift+."  instead of  "Shift+>" )
  22. //
  23. //
  24. //  Commands that can be used in this file:
  25. //
  26. //    unbindall
  27. //    ---------
  28. //    - removes all bindings, and adds "bind enter chat"
  29. //      (one of the other unbind commands can get rid of that one)
  30. //    - good for deleting the default bindings
  31. //
  32. //    keysym <name> <keycode>
  33. //    -----------------------
  34. //    - add a custom key symbol  (the default key symbols can not be overriden)
  35. //    - name must start with a letter, and only contain letters, numbers, and '_'
  36. //    - the <keycode> can be a currently recognized keysym
  37. //      (ex:  "keysym menu 0x13F"  or  "keysym radar r")
  38. //
  39. //    keyset <name> <keyset>
  40. //    ----------------------
  41. //    - specifies a named keyset
  42. //    - name must start with a letter, and only contain letters, numbers, and '_'
  43. //    - named keysets may be accessed by prepending the '&' character to the name
  44. //      (ex:  "keyset myKeySet Ctrl+x"  then  "bind &myKeySet myAction" )
  45. //
  46. //    fakemeta <keysym>
  47. //    -----------------
  48. //    - assign an auxiliary key for the Meta modifier ("space" is a good choice)
  49. //    - use "fakemeta none" to disable this feature
  50. //
  51. //    bind <keyset> <action>
  52. //    ----------------------
  53. //    - appends the action to the keyset's list of actions
  54. //    - the action can be just a command, or a command with arguments
  55. //
  56. //    unbind <keyset> <action>
  57. //    ------------------------
  58. //    - removes the action from the keyset's list of actions
  59. //    - both the action and the keyset must match
  60. //
  61. //    unbindkeyset <keyset>
  62. //    ---------------------
  63. //    - removes all bindings that use the keyset
  64. //
  65. //    unbindaction <action>
  66. //    ---------------------
  67. //    - removes all bindings that use the action  (command that is, a misnomer)
  68. //
  69. //
  70. //  * NOTE: These commands can also be run from the chat line in-game using
  71. //          the slash command syntax  (/bind, /unbind, etc...)
  72. //
  73. //
  74. //  Keyset Format:
  75. //
  76. //    A keyset is a combination of keys, the main key and its modifiers.
  77. //
  78. //    Here are some examples:
  79. //
  80. //      bind            a  fake_action
  81. //      bind       Ctrl+a  fake_action
  82. //      bind          C+a  fake_action
  83. //      bind Ctrl+Shift+a  fake_action
  84. //      bind          *+a  fake_action
  85. //      bind   &my_keyset  fake_action
  86. //
  87. //    The format then goes like this:
  88. //
  89. //      [<Modifier>+]...[<Modifier>+]<keysym>
  90. //
  91. //        or
  92. //
  93. //      &<keyset_name>    (for named keysets)
  94. //
  95. //    The modifiers (and their abbreviations), are:
  96. //
  97. //      Any   (*)
  98. //      Alt   (A)
  99. //      Ctrl  (C)
  100. //      Meta  (M)
  101. //      Shift (S)
  102. //
  103. //    The special 'Any' modifier makes it so that the keyset matches
  104. //    regardless of the current state of the real modifiers.
  105. //
  106. //    The known keysyms (key symbols), are listed at the end of this file.
  107. //    If you want to use a key that is unknown to Spring, then you may use
  108. //    the hexadecimal notation. Here are two equivalent bindings:
  109. //
  110. //      bind Ctrl+0x20  firestate 0  // hold fire
  111. //      bind Ctrl+space firestate 0  // hold fire
  112. //
  113. //
  114. //  Extra Run-Time Commands
  115. //
  116. //    /keyload   : loads the uikeys.txt bindings  (does not clear current bindings)
  117. //    /keyreload : loads the uikeys.txt bindings  (clears current bindings first)
  118. //    /keysave   : save current bindings to 'uikeys.tmp'  (NOTE: 'tmp' vs. 'txt')
  119. //    /keysyms   : prints the known keysyms to standard out
  120. //    /keycodes  : prints the known keycodes to standard out
  121. //    /keyprint  : prints the current bindings to standard out
  122. //    /keydebug  : prints debugging information to standard out (for each keystroke)
  123. //
  124. //
  125. //  Hotbinding:
  126. //
  127. //    The default bindings include the 'hotbind' (Ctrl+insert) and
  128. //    'hotunbind' (Ctrl+delete) capabilities. Place the mouse cursor over one
  129. //    of the control panel icons (normal command or build command), and press
  130. //    Ctrl+insert. Spring will then ask for a keyset, which will then have the
  131. //    icon's command immediately appended to its list of actions. Placing the
  132. //    mouse cursor over an icon and hitting Ctrl+delete will delete all bindings
  133. //    associated with that icon's command.
  134. //
  135. //
  136. //  Default Bindings:
  137. //
  138. //  fakemeta          space
  139. //
  140. //  bind                esc  quitmenu
  141. //  bind     Ctrl+Shift+esc  quitforce
  142. //
  143. //  bind          Any+enter  chat
  144. //  bind          Alt+enter  chatally
  145. //  bind          Alt+enter  chatswitchally
  146. //  bind         Ctrl+enter  chatall
  147. //  bind         Ctrl+enter  chatswitchall
  148. //  bind        Shift+enter  chatspec
  149. //  bind        Shift+enter  chatswitchspec
  150. //
  151. //  bind          Any+enter  edit_return
  152. //  bind         Any+escape  edit_escape
  153. //  bind            Any+tab  edit_complete
  154. //  bind      Any+backspace  edit_backspace
  155. //  bind         Any+delete  edit_delete
  156. //  bind           Alt+left  edit_home
  157. //  bind           Any+home  edit_home
  158. //  bind          Alt+right  edit_end
  159. //  bind            Any+end  edit_end
  160. //  bind           Any+left  edit_prev_char
  161. //  bind          Any+right  edit_next_char
  162. //  bind          Ctrl+left  edit_prev_word
  163. //  bind         Ctrl+right  edit_next_word
  164. //  bind             Any+up  edit_prev_line
  165. //  bind           Any+down  edit_next_line
  166. //
  167. //  bind             Ctrl+v  pastetext
  168. //
  169. //  bind          Any+pause  pause
  170. //
  171. //  bind              Any+j  mouse2
  172. //  bind          backspace  mousestate
  173. //  bind    Shift+backspace  togglecammode
  174. //  bind     Ctrl+backspace  togglecammode
  175. //
  176. //  bind              Any+i  gameinfo
  177. //
  178. //  bind              Any+l  togglelos
  179. //  bind              Any+;  toggleradarandjammer
  180. //  bind            Any+tab  toggleoverview
  181. //
  182. //  bind                  ,  prevmenu
  183. //  bind                  .  nextmenu
  184. //  bind            Shift+,  decguiopacity
  185. //  bind            Shift+.  incguiopacity
  186. //
  187. //  bind        Ctrl+insert  hotbind
  188. //  bind        Ctrl+delete  hotunbind
  189. //
  190. //  bind              Any++  speedup
  191. //  bind              Any+=  speedup
  192. //  bind              Any+-  slowdown
  193. //  bind         Any+insert  speedup
  194. //  bind         Any+delete  slowdown
  195. //  bind        Any+numpad+  speedup
  196. //  bind        Any+numpad-  slowdown
  197. //
  198. //  bind              Alt+b  debug
  199. //  bind              Alt+o  singlestep
  200. //
  201. //  bind              Any+h  sharedialog
  202. //
  203. //  bind              Any+c  controlunit
  204. //  bind             Ctrl+t  trackmode
  205. //  bind              Any+t  track
  206. //
  207. //  bind              Any+`  drawinmap
  208. //  bind              Any+\  drawinmap
  209. //  bind           Any+0xa7  drawinmap
  210. //
  211. //  bind           Any+home  increaseViewRadius
  212. //  bind            Any+end  decreaseViewRadius
  213. //
  214. //  bind             Any+up  moveforward
  215. //  bind           Any+down  moveback
  216. //  bind          Any+right  moveright
  217. //  bind           Any+left  moveleft
  218. //  bind         Any+pageup  moveup
  219. //  bind       Any+pagedown  movedown
  220. //  bind          Any+shift  movefast
  221. //  bind           Any+ctrl  moveslow
  222. //
  223. //  bind                  1  specteam 0
  224. //  bind                  2  specteam 1
  225. //  bind                  3  specteam 2
  226. //  bind                  4  specteam 3
  227. //  bind                  5  specteam 4
  228. //  bind                  6  specteam 5
  229. //  bind                  7  specteam 6
  230. //  bind                  8  specteam 7
  231. //  bind                  9  specteam 8
  232. //  bind                  0  specteam 9
  233. //  bind             Ctrl+1  specteam 10
  234. //  bind             Ctrl+2  specteam 11
  235. //  bind             Ctrl+3  specteam 12
  236. //  bind             Ctrl+4  specteam 13
  237. //  bind             Ctrl+5  specteam 14
  238. //  bind             Ctrl+6  specteam 15
  239. //  bind             Ctrl+7  specteam 16
  240. //  bind             Ctrl+8  specteam 17
  241. //  bind             Ctrl+9  specteam 18
  242. //  bind             Ctrl+0  specteam 19
  243. //
  244. //  bind              Any+0  group0
  245. //  bind              Any+1  group1
  246. //  bind              Any+2  group2
  247. //  bind              Any+3  group3
  248. //  bind              Any+4  group4
  249. //  bind              Any+5  group5
  250. //  bind              Any+6  group6
  251. //  bind              Any+7  group7
  252. //  bind              Any+8  group8
  253. //  bind              Any+9  group9
  254. //
  255. //  bind              Any+z  buildspacing inc
  256. //  bind              Any+x  buildspacing dec
  257. //
  258. //  bind                  [  buildfacing inc
  259. //  bind            Shift+[  buildfacing inc
  260. //  bind                  ]  buildfacing dec
  261. //  bind            Shift+]  buildfacing dec
  262. //
  263. //  bind                  a  attack
  264. //  bind            Shift+a  attack
  265. //  bind              Alt+a  areaattack
  266. //  bind        Alt+Shift+a  areaattack
  267. //  bind                  d  manualfire
  268. //  bind            Shift+d  manualfire
  269. //  bind             Ctrl+d  selfd
  270. //  bind       Ctrl+Shift+d  selfd queued
  271. //  bind                  e  reclaim
  272. //  bind            Shift+e  reclaim
  273. //  bind                  f  fight
  274. //  bind            Shift+f  fight
  275. //  bind              Alt+f  forcestart
  276. //  bind                  g  guard
  277. //  bind            Shift+g  guard
  278. //  bind                  k  cloak
  279. //  bind            Shift+k  cloak
  280. //  bind                  l  loadunits
  281. //  bind            Shift+l  loadunits
  282. //  bind                  m  move
  283. //  bind            Shift+m  move
  284. //  bind                  p  patrol
  285. //  bind            Shift+p  patrol
  286. //  bind                  r  repair
  287. //  bind            Shift+r  repair
  288. //  bind                  s  stop
  289. //  bind            Shift+s  stop
  290. //  bind                  u  unloadunits
  291. //  bind            Shift+u  unloadunits
  292. //  bind                  w  wait
  293. //  bind            Shift+w  wait queued
  294. //  bind                  x  onoff
  295. //  bind            Shift+x  onoff
  296. //
  297. //  bind                  q  groupselect
  298. //  bind                  q  groupadd
  299. //  bind             Ctrl+q  aiselect
  300. //  bind            Shift+q  groupclear
  301. //
  302. //  bind            Ctrl+f1  viewfps
  303. //  bind            Ctrl+f2  viewta
  304. //  bind            Ctrl+f3  viewtw
  305. //  bind            Ctrl+f4  viewrot
  306. //
  307. //  bind             Any+f1  showElevation
  308. //  bind             Any+f2  ShowPathTraversability
  309. //  bind             Any+f3  LastMsgPos
  310. //  bind             Any+f4  ShowMetalMap
  311. //  bind             Any+f5  hideinterface
  312. //  bind             Any+f6  NoSound
  313. //  bind             Any+f7  dynamicSky
  314. //  bind      Ctrl+Shift+f8  savegame
  315. //  bind             Any+f9  showhealthbars
  316. //  bind     Ctrl+Shift+f10  createvideo
  317. //  bind            Any+f11  screenshot
  318. //  bind            Any+f12  screenshot
  319. //
  320. //  Key Symbol    Key Code
  321. //  ----------    --------
  322. //
  323. //  !             0x021
  324. //  "             0x022
  325. //  #             0x023
  326. //  $             0x024
  327. //  %             0x025
  328. //  &             0x026
  329. //  '             0x027
  330. //  (             0x028
  331. //  )             0x029
  332. //  *             0x02A
  333. //  +             0x02B
  334. //  ,             0x02C
  335. //  -             0x02D
  336. //  .             0x02E
  337. //  /             0x02F
  338. //  0             0x030
  339. //  1             0x031
  340. //  2             0x032
  341. //  3             0x033
  342. //  4             0x034
  343. //  5             0x035
  344. //  6             0x036
  345. //  7             0x037
  346. //  8             0x038
  347. //  9             0x039
  348. //  :             0x03A
  349. //  ;             0x03B
  350. //  <             0x03C
  351. //  =             0x03D
  352. //  >             0x03E
  353. //  ?             0x03F
  354. //  @             0x040
  355. //  [             0x05B
  356. //  \             0x05C
  357. //  ]             0x05D
  358. //  ^             0x05E
  359. //  _             0x05F
  360. //  `             0x060
  361. //  a             0x061
  362. //  alt           0x134
  363. //  b             0x062
  364. //  backspace     0x008
  365. //  c             0x063
  366. //  clear         0x00C
  367. //  ctrl          0x132
  368. //  d             0x064
  369. //  delete        0x07F
  370. //  down          0x112
  371. //  e             0x065
  372. //  end           0x117
  373. //  enter         0x00D
  374. //  esc           0x01B
  375. //  escape        0x01B
  376. //  f             0x066
  377. //  f1            0x11A
  378. //  f10           0x123
  379. //  f11           0x124
  380. //  f12           0x125
  381. //  f13           0x126
  382. //  f14           0x127
  383. //  f15           0x128
  384. //  f2            0x11B
  385. //  f3            0x11C
  386. //  f4            0x11D
  387. //  f5            0x11E
  388. //  f6            0x11F
  389. //  f7            0x120
  390. //  f8            0x121
  391. //  f9            0x122
  392. //  g             0x067
  393. //  h             0x068
  394. //  home          0x116
  395. //  i             0x069
  396. //  insert        0x115
  397. //  j             0x06A
  398. //  joy0          0x12C
  399. //  joy1          0x12D
  400. //  joy2          0x12E
  401. //  joy3          0x12F
  402. //  joy4          0x130
  403. //  joy5          0x131
  404. //  joy6          0x132
  405. //  joy7          0x133
  406. //  joydown       0x141
  407. //  joyleft       0x142
  408. //  joyright      0x143
  409. //  joyup         0x140
  410. //  joyw          0x193
  411. //  joyx          0x190
  412. //  joyy          0x191
  413. //  joyz          0x192
  414. //  k             0x06B
  415. //  l             0x06C
  416. //  left          0x114
  417. //  m             0x06D
  418. //  meta          0x136
  419. //  n             0x06E
  420. //  numpad*       0x10C
  421. //  numpad+       0x10E
  422. //  numpad-       0x10D
  423. //  numpad.       0x10A
  424. //  numpad/       0x10B
  425. //  numpad0       0x100
  426. //  numpad1       0x101
  427. //  numpad2       0x102
  428. //  numpad3       0x103
  429. //  numpad4       0x104
  430. //  numpad5       0x105
  431. //  numpad6       0x106
  432. //  numpad7       0x107
  433. //  numpad8       0x108
  434. //  numpad9       0x109
  435. //  numpad=       0x110
  436. //  numpad_enter  0x10F
  437. //  o             0x06F
  438. //  p             0x070
  439. //  pagedown      0x119
  440. //  pageup        0x118
  441. //  pause         0x013
  442. //  printscreen   0x13C
  443. //  q             0x071
  444. //  r             0x072
  445. //  return        0x00D
  446. //  right         0x113
  447. //  s             0x073
  448. //  shift         0x130
  449. //  space         0x020
  450. //  t             0x074
  451. //  tab           0x009
  452. //  u             0x075
  453. //  up            0x111
  454. //  v             0x076
  455. //  w             0x077
  456. //  x             0x078
  457. //  y             0x079
  458. //  z             0x07A
  459. //  {             0x07B
  460. //  |             0x07C
  461. //  }             0x07D
  462. //  ~             0x07E
  463. //unbind              Any+`  drawinmap
  464. //unbind              Any+\  drawinmap
  465. //unbind           Any+0xa7  drawinmap
  466. //MEXES:
  467. //t1 mexes:
  468. //t2 mexes:
  469. //ENERGY:
  470. //solar and wind:
  471. //DEFENCE AND RADAR
  472. //light AA:
  473. // beamer
  474. //nano
  475. //Control_A AllMap++_ClearSelection_SelectAll+
  476. //Control_B AllMap+_Builder_Idle+_ClearSelection_SelectOne+
  477. //Control_C AllMap+_ManualFireUnit+_ClearSelection_SelectOne+
  478. //Control_R AllMap+_Radar+_ClearSelection_SelectAll+
  479. //Control_V AllMap+_Not_Builder_Not_Commander_InPrevSel_Not_InHotkeyGroup+_SelectAll+
  480. //Control_W AllMap+_Not_Aircraft_Weapons+_ClearSelection_SelectAll+
  481. //Control_X AllMap+_InPrevSel_Not_InHotkeyGroup+_SelectAll+
  482. //Control_Z AllMap+_InPrevSel+_ClearSelection_SelectAll+
  483. unbindaction specteam
  484. unbind      Any+c       controlunit
  485. unbind      .       nextmenu
  486. unbind      Alt+f       forcestart
  487. unbind      Ctrl+q      aiselect
  488. unbind      Shift+.     incguiopacity
  489. unbind      Shift+[     buildfacing inc
  490. unbind      Shift+]     buildfacing dec
  491. unbind      Shift+f     fight
  492. unbind      Shift+q     groupclear
  493. unbind      Shift+w     wait queued
  494. unbind      Shift+x     onoff
  495. unbind      [       buildfacing inc
  496. unbind      ]       buildfacing dec
  497. unbind      d       dgun
  498. unbind      f       fight
  499. unbind      q       groupadd
  500. unbind      q       groupselect
  501. unbind      s       stop
  502. unbind      w       wait
  503. unbind      x       onoff
  504. unbind          d               manualfire
  505. unbind          Shift+d         manualfire
  506. bind        Any+"       group3
  507. bind        Any+&       group1
  508. bind        Any+'       group4
  509. bind        Any+(       group5
  510. bind        Any+*       drawinmap
  511. bind        Any+-       group6
  512. bind        Any+_       drawinmap
  513. bind        Any+_       group8
  514. bind        Any+d       moveright
  515. bind        Any+p       drawinmap
  516. bind        Any+q       moveleft
  517. bind        Any+s       moveforward
  518. bind        Any+t       buildspacing inc
  519. bind        Any+x       moveback
  520. bind        Any+y       buildspacing dec
  521. bind        Any+à      group0
  522. bind        Any+ç      group9
  523. bind        Any+è      group7
  524. bind        Any+é      group2
  525. bind        (       buildfacing inc
  526. bind        )       buildfacing dec
  527. bind        ;       nextmenu
  528. bind        Alt+e       select PrevSelection++_SelectAll+
  529. bind        Alt+r       select AllMap++_ClearSelection_SelectAll+
  530. bind        Alt+t       select Visible++_SelectAll+
  531. bind        Alt+z       select Visible+_InPrevSel+_ClearSelection_SelectAll+
  532. bind        Shift+(     buildfacing inc
  533. bind        Shift+)     buildfacing dec
  534. bind        Shift+;     incguiopacity
  535. bind        Shift+b     buildunit_tawf001
  536. bind        Shift+b     buildunit_armnanotc
  537. bind        Shift+c     buildunit_armmex
  538. bind        Shift+c     buildunit_cormex
  539. bind        Shift+c     buildunit_armmoho
  540. bind        Shift+c     buildunit_cormoho
  541. bind        Shift+c     buildunit_cormexp
  542. bind        Shift+c     buildunit_armsolar
  543. bind        Shift+c     buildunit_armwin
  544. bind        Shift+c     buildunit_corsolar
  545. bind        Shift+c     buildunit_corwin
  546. bind        Shift+f     manualfire
  547. bind        Shift+f     dgun
  548. bind        Shift+v     buildunit_armllt
  549. bind        Shift+v     buildunit_armrad
  550. bind        Shift+v     buildunit_corllt
  551. bind        Shift+v     buildunit_corrad
  552. bind        Shift+v     buildunit_corrl
  553. bind        Shift+v     buildunit_armrl
  554. bind        Shift+z     stop
  555. bind        b       buildunit_tawf001
  556. bind        b       buildunit_armnanotc
  557. bind        c       buildunit_armmex
  558. bind        c       buildunit_cormex
  559. bind        c       buildunit_armmoho
  560. bind        c       buildunit_cormoho
  561. bind        c       buildunit_cormexp
  562. bind        c       buildunit_armsolar
  563. bind        c       buildunit_armwin
  564. bind        c       buildunit_corsolar
  565. bind        c       buildunit_corwin
  566. bind        f       manualfire
  567. bind        f       dgun
  568. bind        s       0
  569. bind        v       buildunit_armllt
  570. bind        v       buildunit_armrad
  571. bind        v       buildunit_corllt
  572. bind        v       buildunit_corrad
  573. bind        v       buildunit_corrl
  574. bind        v       buildunit_armrl
  575. bind        z       stop
Advertisement
Add Comment
Please, Sign In to add comment