Advertisement
Guest User

uikeys.txt

a guest
Nov 23rd, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.04 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. // bind Ctrl+a select AllMap++_ClearSelection_SelectAll+
  321. // bind Ctrl+b select AllMap+_Builder_Idle+_ClearSelection_SelectOne+
  322. // bind Ctrl+c select AllMap+_ManualFireUnit+_ClearSelection_SelectOne+
  323. // bind Ctrl+r select AllMap+_Radar+_ClearSelection_SelectAll+
  324. // bind Ctrl+v select AllMap+_Not_Builder_Not_Commander_InPrevSel_Not_InHotkeyGroup+_SelectAll+
  325. // bind Ctrl+w select AllMap+_Not_Aircraft_Weapons+_ClearSelection_SelectAll+
  326. // bind Ctrl+x select AllMap+_InPrevSel_Not_InHotkeyGroup+_SelectAll+
  327. // bind Ctrl+z select AllMap+_InPrevSel+_ClearSelection_SelectAll+
  328. bind c select AllMap+_ManualFireUnit+_ClearSelection_SelectNum_1+
  329.  
  330. // Key Symbol Key Code
  331. // ---------- --------
  332. //
  333. // ! 0x021
  334. // " 0x022
  335. // # 0x023
  336. // $ 0x024
  337. // % 0x025
  338. // & 0x026
  339. // ' 0x027
  340. // ( 0x028
  341. // ) 0x029
  342. // * 0x02A
  343. // + 0x02B
  344. // , 0x02C
  345. // - 0x02D
  346. // . 0x02E
  347. // / 0x02F
  348. // 0 0x030
  349. // 1 0x031
  350. // 2 0x032
  351. // 3 0x033
  352. // 4 0x034
  353. // 5 0x035
  354. // 6 0x036
  355. // 7 0x037
  356. // 8 0x038
  357. // 9 0x039
  358. // : 0x03A
  359. // ; 0x03B
  360. // < 0x03C
  361. // = 0x03D
  362. // > 0x03E
  363. // ? 0x03F
  364. // @ 0x040
  365. // [ 0x05B
  366. // \ 0x05C
  367. // ] 0x05D
  368. // ^ 0x05E
  369. // _ 0x05F
  370. // ` 0x060
  371. // a 0x061
  372. // alt 0x134
  373. // b 0x062
  374. // backspace 0x008
  375. // c 0x063
  376. // clear 0x00C
  377. // ctrl 0x132
  378. // d 0x064
  379. // delete 0x07F
  380. // down 0x112
  381. // e 0x065
  382. // end 0x117
  383. // enter 0x00D
  384. // esc 0x01B
  385. // escape 0x01B
  386. // f 0x066
  387. // f1 0x11A
  388. // f10 0x123
  389. // f11 0x124
  390. // f12 0x125
  391. // f13 0x126
  392. // f14 0x127
  393. // f15 0x128
  394. // f2 0x11B
  395. // f3 0x11C
  396. // f4 0x11D
  397. // f5 0x11E
  398. // f6 0x11F
  399. // f7 0x120
  400. // f8 0x121
  401. // f9 0x122
  402. // g 0x067
  403. // h 0x068
  404. // home 0x116
  405. // i 0x069
  406. // insert 0x115
  407. // j 0x06A
  408. // joy0 0x12C
  409. // joy1 0x12D
  410. // joy2 0x12E
  411. // joy3 0x12F
  412. // joy4 0x130
  413. // joy5 0x131
  414. // joy6 0x132
  415. // joy7 0x133
  416. // joydown 0x141
  417. // joyleft 0x142
  418. // joyright 0x143
  419. // joyup 0x140
  420. // joyw 0x193
  421. // joyx 0x190
  422. // joyy 0x191
  423. // joyz 0x192
  424. // k 0x06B
  425. // l 0x06C
  426. // left 0x114
  427. // m 0x06D
  428. // meta 0x136
  429. // n 0x06E
  430. // numpad* 0x10C
  431. // numpad+ 0x10E
  432. // numpad- 0x10D
  433. // numpad. 0x10A
  434. // numpad/ 0x10B
  435. // numpad0 0x100
  436. // numpad1 0x101
  437. // numpad2 0x102
  438. // numpad3 0x103
  439. // numpad4 0x104
  440. // numpad5 0x105
  441. // numpad6 0x106
  442. // numpad7 0x107
  443. // numpad8 0x108
  444. // numpad9 0x109
  445. // numpad= 0x110
  446. // numpad_enter 0x10F
  447. // o 0x06F
  448. // p 0x070
  449. // pagedown 0x119
  450. // pageup 0x118
  451. // pause 0x013
  452. // printscreen 0x13C
  453. // q 0x071
  454. // r 0x072
  455. // return 0x00D
  456. // right 0x113
  457. // s 0x073
  458. // shift 0x130
  459. // space 0x020
  460. // t 0x074
  461. // tab 0x009
  462. // u 0x075
  463. // up 0x111
  464. // v 0x076
  465. // w 0x077
  466. // x 0x078
  467. // y 0x079
  468. // z 0x07A
  469. // { 0x07B
  470. // | 0x07C
  471. // } 0x07D
  472. // ~ 0x07E
  473.  
  474. // CUSTOMS BINDINGS
  475.  
  476. bind Any+return chat
  477. bind Alt+return chatally
  478. bind Alt+return chatswitchally
  479. bind Ctrl+return chatall
  480. bind Ctrl+return chatswitchall
  481. bind Shift+return chatspec
  482. bind Shift+return chatswitchspec
  483. bind alt+enter togglefullscreen
  484.  
  485.  
  486.  
  487. //keysyms:
  488. keysym aring 0x0E5 //spring 97
  489. //keysym aring 0x0E4 // spring 96
  490. keysym ae 0x0E4
  491. //keysym ae 0x027 // spring 96
  492. //keysym oe 0x060 // spring 96
  493. keysym oe 0x0F6 // spring 97+
  494. keysym acc 0xB4
  495.  
  496. //custom bindings:
  497. unbind escape quitmenu
  498. bind shift+escape quitmenu
  499. bind shift+enter
  500.  
  501. unbind esc quit
  502. unbind esc quitwarn
  503. unbind any+j mouse2
  504. unbind Any+backspace mousestate
  505. unbind backspace mousestate
  506. unbind Any+; toggleradarandjammer
  507. bind oe toggleradarandjammer
  508. //bind oe togglelos
  509. unbind Shift+, decguiopacity
  510. unbind Shift+. incguiopacity
  511. bind Shift+alt+, decguiopacity
  512. bind Shift+alt+. incguiopacity
  513. bind Shift+, toggleradarandjammer
  514. unbind Ctrl+insert hotbind
  515. unbind Ctrl+delete hotunbind
  516. unbind Any+insert speedup
  517. unbind Any+delete slowdown
  518. unbind Any+b debug
  519. unbind Any+o singlestep
  520. bind numpad/ controlunit
  521. unbind Any+c controlunit
  522. unbind c controlunit
  523. //unbind Any+` drawinmap
  524. unbind Any+home increaseViewRadius
  525. unbind Any+end decreaseViewRadius
  526. bind alt+home increaseViewRadius
  527. bind alt+end decreaseViewRadius
  528. unbind Any+z buildspacing inc
  529. unbind Any+x buildspacing dec
  530. bind Shift+z buildspacing inc
  531. bind Shift+x buildspacing dec
  532. bind Ctrl+z buildspacing inc
  533. bind Ctrl+x buildspacing dec
  534. unbind [ buildfacing inc
  535. unbind Shift+[ buildfacing inc
  536. unbind ] buildfacing dec
  537. unbind Shift+] buildfacing dec
  538. bind shift+insert buildfacing inc
  539. bind shift+delete buildfacing dec
  540. bind acc buildfacing inc
  541. bind + buildfacing dec
  542. bind a attack
  543. bind Shift+a attack
  544. bind d manualfire
  545. bind e reclaim
  546. bind Shift+e reclaim
  547. unbind Any+f7 dynamicSky
  548. unbind Ctrl+Shift+f8 savegame
  549. unbind Ctrl+Shift+f10 createvideo
  550. unbind f11 screenshot
  551. unbind Any+f12 screenshot
  552. bind f12 screenshot png
  553. bind Ctrl+f12 togglewidget Ecostats
  554. bind Ctrl+f9 togglewidget Profiler
  555. bind Ctrl+Shift+f12 togglewidget MessageSeparator
  556. bind Ctrl+shift+f9 togglewidget Projectile lights
  557. bind Ctrl+alt+f5 cheat
  558. bind ctrl+alt+f6 luaui reload
  559. bind ctrl+alt+f7 luarules reload
  560.  
  561. bind alt+g gathermode
  562. bind alt+w gatherwait
  563. bind alt+t timewait
  564. bind alt+s squadwait
  565. bind alt+d deathwait
  566. bind ctrl+return firestate 0
  567. bind alt+return firestate 2
  568. bind pageup firestate 2
  569. bind shift+pagedown firestate 1
  570. bind pagedown firestate 0
  571. bind home movestate 2
  572. bind shift+end movestate 1
  573. bind end movestate 0
  574.  
  575. bind j jump
  576.  
  577.  
  578. //unbindings
  579. unbind any+v onoff
  580. unbind v onoff
  581. unbind any+b debug
  582. unbind b debug
  583. unbindkeyset n
  584. //unbindkeyset ae
  585. unbindkeyset aring
  586.  
  587. // **** METAL: v ****
  588. //
  589. // 1 mexx
  590. // 2 uw mexx
  591. // 3 mstore
  592. // 4 uw mstore
  593. // 5 mmaker
  594. // 6 floating mmaker
  595. // 7 moho mine
  596. // 8 uw moho mine
  597. //
  598. bind v buildunit_arm_metal_extractor
  599. bind v buildunit_core_metal_extractor
  600. bind v buildunit_arm_underwater_metal_extractor
  601. bind v buildunit_core_underwater_metal_extractor
  602.  
  603.  
  604. // ENERGY: **** b ****
  605.  
  606. //solar and wind:
  607. bind b buildunit_arm_solar_collector
  608. bind b buildunit_arm_wind_generator
  609. //
  610. bind b buildunit_core_solar_collector
  611. bind b buildunit_core_wind_generator
  612. bind b buildunit_arm_tidal_generator
  613. bind b buildunit_core_tidal_generator
  614. bind b buildunit_arm_underwater_tidal_generator
  615. bind b buildunit_core_underwater_tidal_generator
  616.  
  617.  
  618. // Radar: **** n ****
  619.  
  620. bind n buildunit_arm_radar_tower
  621. bind n buildunit_core_radar_tower
  622. bind n buildunit_arm_advanced_radar_tower
  623. bind n buildunit_core_advanced_radar_tower
  624. bind n buildunit_arm_floating_radar
  625. bind n buildunit_core_floating_radar
  626.  
  627. //quick defence ****<****
  628.  
  629. bind < buildunit_arm_dragons_teeth
  630. bind < buildunit_core_dragons_teeth
  631. bind < buildunit_arm_light_laser_tower
  632. bind < buildunit_core_light_laser_tower
  633. bind < buildunit_arm_easter_egg
  634. bind < buildunit_core_easter_egg
  635.  
  636. bind a buildunit_arm_missile_tower
  637. bind a buildunit_core_missile_tower
  638.  
  639. // QUICK NAVAL DEFENCE & AA: รค
  640.  
  641. bind ae buildunit_arm_floating_dragons_teeth
  642. bind ae buildunit_core_floating_dragons_teeth
  643. bind ae buildunit_arm_floating_light_laser_tower
  644. bind ae buildunit_core_floating_light_laser_tower
  645. bind ae buildunit_arm_torpedo_launcher
  646. bind ae buildunit_core_torpedo_launcher
  647.  
  648. //
  649. // Quick build menu
  650. //
  651. // BA BINDINGS
  652.  
  653. bind v buildunit_armmex
  654. bind v buildunit_cormex
  655. bind v buildunit_armuwmex
  656. bind v buildunit_coruwmex
  657.  
  658. bind b buildunit_armsolar
  659. bind b buildunit_armwin
  660. bind b buildunit_corsolar
  661. bind b buildunit_corwin
  662. bind b buildunit_armtide
  663. bind b buildunit_cortide
  664.  
  665. bind < buildunit_armdrag
  666. bind < buildunit_cordrag
  667. bind < buildunit_armllt
  668. bind < buildunit_corllt
  669.  
  670. // ZK Bindings
  671.  
  672. bind v buildunit_armmex
  673. bind v buildunit_cormex
  674. bind < buildunit_armllt
  675. bind < buildunit_corllt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement