Advertisement
Guest User

Untitled

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