Advertisement
Guest User

Untitled

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