Advertisement
Guest User

Untitled

a guest
Jan 1st, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.63 KB | None | 0 0
  1. //
  2. // DEFAULT UIKEYS.TXT FOR SPRING (0.73)
  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 Any+backspace mousestate
  173. //
  174. // bind Any+i gameinfo
  175. //
  176. // bind Any+l togglelos
  177. // bind Any+; toggleradarandjammer
  178. // bind Any+tab toggleoverview
  179. //
  180. // bind , prevmenu
  181. // bind . nextmenu
  182. // bind Shift+, decguiopacity
  183. // bind Shift+. incguiopacity
  184. //
  185. // bind Ctrl+insert hotbind
  186. // bind Ctrl+delete hotunbind
  187. //
  188. // bind Any++ speedup
  189. // bind Any+= speedup
  190. // bind Any+- slowdown
  191. // bind Any+insert speedup
  192. // bind Any+delete slowdown
  193. // bind Any+numpad+ speedup
  194. // bind Any+numpad- slowdown
  195. //
  196. // bind Any+b debug
  197. // bind Any+o singlestep
  198. //
  199. // bind Any+h sharedialog
  200. //
  201. // bind Any+c controlunit
  202. // bind Ctrl+t trackmode
  203. // bind Any+t track
  204. //
  205. // bind Any+` drawinmap
  206. // bind Any+\ drawinmap
  207. // bind Any+0xa7 drawinmap
  208. //
  209. // bind Any+home increaseViewRadius
  210. // bind Any+end decreaseViewRadius
  211. //
  212. // bind Any+up moveforward
  213. // bind Any+down moveback
  214. // bind Any+right moveright
  215. // bind Any+left moveleft
  216. // bind Any+pageup moveup
  217. // bind Any+pagedown movedown
  218. // bind Any+shift movefast
  219. // bind Any+ctrl moveslow
  220. //
  221. // bind 1 specteam 0
  222. // bind 2 specteam 1
  223. // bind 3 specteam 2
  224. // bind 4 specteam 3
  225. // bind 5 specteam 4
  226. // bind 6 specteam 5
  227. // bind 7 specteam 6
  228. // bind 8 specteam 7
  229. // bind 9 specteam 8
  230. // bind 0 specteam 9
  231. // bind Ctrl+1 specteam 10
  232. // bind Ctrl+2 specteam 11
  233. // bind Ctrl+3 specteam 12
  234. // bind Ctrl+4 specteam 13
  235. // bind Ctrl+5 specteam 14
  236. // bind Ctrl+6 specteam 15
  237. // bind Ctrl+7 specteam 16
  238. // bind Ctrl+8 specteam 17
  239. // bind Ctrl+9 specteam 18
  240. // bind Ctrl+0 specteam 19
  241. //
  242. // bind Any+0 group0
  243. // bind Any+1 group1
  244. // bind Any+2 group2
  245. // bind Any+3 group3
  246. // bind Any+4 group4
  247. // bind Any+5 group5
  248. // bind Any+6 group6
  249. // bind Any+7 group7
  250. // bind Any+8 group8
  251. // bind Any+9 group9
  252. //
  253. // bind Any+z buildspacing inc
  254. // bind Any+x buildspacing dec
  255. //
  256. // bind [ buildfacing inc
  257. // bind Shift+[ buildfacing inc
  258. // bind ] buildfacing dec
  259. // bind Shift+] buildfacing dec
  260. //
  261. // bind a attack
  262. // bind Shift+a attack
  263. // bind Alt+a areaattack
  264. // bind Alt+Shift+a areaattack
  265. // bind d dgun
  266. // bind Shift+d dgun
  267. // bind Ctrl+d selfd
  268. // bind Ctrl+Shift+d selfd queued
  269. // bind e reclaim
  270. // bind Shift+e reclaim
  271. // bind f fight
  272. // bind Shift+f fight
  273. // bind g guard
  274. // bind Shift+g guard
  275. // bind k cloak
  276. // bind Shift+k cloak
  277. // bind l loadunits
  278. // bind Shift+l loadunits
  279. // bind m move
  280. // bind Shift+m move
  281. // bind p patrol
  282. // bind Shift+p patrol
  283. // bind r repair
  284. // bind Shift+r repair
  285. // bind s stop
  286. // bind Shift+s stop
  287. // bind u unloadunits
  288. // bind Shift+u unloadunits
  289. // bind w wait
  290. // bind Shift+w wait queued
  291. // bind x onoff
  292. // bind Shift+x onoff
  293. //
  294. // bind q groupselect
  295. // bind q groupadd
  296. // bind Ctrl+q aiselect
  297. // bind Shift+q groupclear
  298. //
  299. // bind Ctrl+f1 viewfps
  300. // bind Ctrl+f2 viewta
  301. // bind Ctrl+f3 viewtw
  302. // bind Ctrl+f4 viewrot
  303. //
  304. // bind Any+f1 showElevation
  305. // bind Any+f2 ShowPathMap
  306. // bind Any+f3 LastMsgPos
  307. // bind Any+f4 ShowMetalMap
  308. // bind Any+f5 hideinterface
  309. // bind Any+f6 NoSound
  310. // bind Any+f7 dynamicSky
  311. // bind Ctrl+Shift+f8 savegame
  312. // bind Any+f9 showhealthbars
  313. // bind Ctrl+Shift+f10 createvideo
  314. // bind Any+f11 screenshot
  315. // bind Any+f12 screenshot
  316. //
  317. // Key Symbol Key Code
  318. // ---------- --------
  319. //
  320. // ! 0x021
  321. // " 0x022
  322. // # 0x023
  323. // $ 0x024
  324. // % 0x025
  325. // & 0x026
  326. // ' 0x027
  327. // ( 0x028
  328. // ) 0x029
  329. // * 0x02A
  330. // + 0x02B
  331. // , 0x02C
  332. // - 0x02D
  333. // . 0x02E
  334. // / 0x02F
  335. // 0 0x030
  336. // 1 0x031
  337. // 2 0x032
  338. // 3 0x033
  339. // 4 0x034
  340. // 5 0x035
  341. // 6 0x036
  342. // 7 0x037
  343. // 8 0x038
  344. // 9 0x039
  345. // : 0x03A
  346. // ; 0x03B
  347. // < 0x03C
  348. // = 0x03D
  349. // > 0x03E
  350. // ? 0x03F
  351. // @ 0x040
  352. // [ 0x05B
  353. // \ 0x05C
  354. // ] 0x05D
  355. // ^ 0x05E
  356. // _ 0x05F
  357. // ` 0x060
  358. // a 0x061
  359. // alt 0x134
  360. // b 0x062
  361. // backspace 0x008
  362. // c 0x063
  363. // clear 0x00C
  364. // ctrl 0x132
  365. // d 0x064
  366. // delete 0x07F
  367. // down 0x112
  368. // e 0x065
  369. // end 0x117
  370. // enter 0x00D
  371. // esc 0x01B
  372. // escape 0x01B
  373. // f 0x066
  374. // f1 0x11A
  375. // f10 0x123
  376. // f11 0x124
  377. // f12 0x125
  378. // f13 0x126
  379. // f14 0x127
  380. // f15 0x128
  381. // f2 0x11B
  382. // f3 0x11C
  383. // f4 0x11D
  384. // f5 0x11E
  385. // f6 0x11F
  386. // f7 0x120
  387. // f8 0x121
  388. // f9 0x122
  389. // g 0x067
  390. // h 0x068
  391. // home 0x116
  392. // i 0x069
  393. // insert 0x115
  394. // j 0x06A
  395. // joy0 0x12C
  396. // joy1 0x12D
  397. // joy2 0x12E
  398. // joy3 0x12F
  399. // joy4 0x130
  400. // joy5 0x131
  401. // joy6 0x132
  402. // joy7 0x133
  403. // joydown 0x141
  404. // joyleft 0x142
  405. // joyright 0x143
  406. // joyup 0x140
  407. // joyw 0x193
  408. // joyx 0x190
  409. // joyy 0x191
  410. // joyz 0x192
  411. // k 0x06B
  412. // l 0x06C
  413. // left 0x114
  414. // m 0x06D
  415. // meta 0x136
  416. // n 0x06E
  417. // numpad* 0x10C
  418. // numpad+ 0x10E
  419. // numpad- 0x10D
  420. // numpad. 0x10A
  421. // numpad/ 0x10B
  422. // numpad0 0x100
  423. // numpad1 0x101
  424. // numpad2 0x102
  425. // numpad3 0x103
  426. // numpad4 0x104
  427. // numpad5 0x105
  428. // numpad6 0x106
  429. // numpad7 0x107
  430. // numpad8 0x108
  431. // numpad9 0x109
  432. // numpad= 0x110
  433. // numpad_enter 0x10F
  434. // o 0x06F
  435. // p 0x070
  436. // pagedown 0x119
  437. // pageup 0x118
  438. // pause 0x013
  439. // printscreen 0x13C
  440. // q 0x071
  441. // r 0x072
  442. // return 0x00D
  443. // right 0x113
  444. // s 0x073
  445. // shift 0x130
  446. // space 0x020
  447. // t 0x074
  448. // tab 0x009
  449. // u 0x075
  450. // up 0x111
  451. // v 0x076
  452. // w 0x077
  453. // x 0x078
  454. // y 0x079
  455. // z 0x07A
  456. // { 0x07B
  457. // | 0x07C
  458. // } 0x07D
  459. // ~ 0x07E
  460. unbind Any+c controlunit
  461. unbind Any+j mouse2
  462. unbind Any+t track
  463. unbind Ctrl+q aiselect
  464. unbind Ctrl+t trackmode
  465. unbind Ctrl+v pastetext
  466. unbind q groupadd
  467. unbind q groupselect
  468. bind Alt+Meta+0 specteam 19
  469. bind Alt+Meta+1 specteam 10
  470. bind Alt+Meta+2 specteam 11
  471. bind Alt+Meta+3 specteam 12
  472. bind Alt+Meta+4 specteam 13
  473. bind Alt+Meta+5 specteam 14
  474. bind Alt+Meta+6 specteam 15
  475. bind Alt+Meta+7 specteam 16
  476. bind Alt+Meta+8 specteam 17
  477. bind Alt+Meta+9 specteam 18
  478. bind Alt+t track
  479. bind Alt+v controlunit
  480. bind Ctrl+a select AllMap++_ClearSelection_SelectAll+
  481. bind Ctrl+b select AllMap+_Builder_Not_Building_Not_Transport_Idle+_ClearSelection_SelectAll+
  482. bind Ctrl+c selectcomm
  483. bind Ctrl+e select PrevSelection+_Not_RelativeHealth_30+_ClearSelection_SelectAll+
  484. bind Ctrl+f select AllMap+_Not_Builder_Not_Building_Not_Transport_Aircraft_Weapons_Not_NameContain_Vamp_Not_Radar+_ClearSelection_SelectAll+
  485. bind Ctrl+g select AllMap+_NameContain_Vamp+_ClearSelection_SelectAll+
  486. bind Ctrl+i select PrevSelection+_Idle+_ClearSelection_SelectAll+
  487. bind Ctrl+r select AllMap+_Not_Builder_Not_Building+_ClearSelection_SelectAll+
  488. bind Ctrl+s select AllMap+_Not_Builder_Not_Building_Not_Transport_Aircraft_Radar+_ClearSelection_SelectAll+
  489. bind Ctrl+t select AllMap+_Not_Builder_Not_Building_Transport_Aircraft+_ClearSelection_SelectAll+
  490. bind Ctrl+v select AllMap+_Builder_Not_Building_Idle+_ClearSelection_SelectOne+
  491. bind Ctrl+w select AllMap+_Not_Builder_Not_Building_Not_Transport_Not_Aircraft_Weapons_Not_WeaponRange_600+_ClearSelection_SelectAll+
  492. bind Ctrl+x select Visible+_InPrevSel+_ClearSelection_SelectAll+
  493. bind Ctrl+z select AllMap+_InPrevSel_Not_Builder+_ClearSelection_SelectAll+
  494. bind Meta+0 specteam 9
  495. bind Meta+1 specteam 0
  496. bind Meta+2 specteam 1
  497. bind Meta+3 specteam 2
  498. bind Meta+4 specteam 3
  499. bind Meta+5 specteam 4
  500. bind Meta+6 specteam 5
  501. bind Meta+7 specteam 6
  502. bind Meta+8 specteam 7
  503. bind Meta+9 specteam 8
  504. bind Shift+d oneclickwep
  505. bind Shift+j jump
  506. bind Shift+t resurrect
  507. bind d oneclickwep
  508. bind j jump
  509. bind t resurrect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement