joystickSettings.gui 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. //--- OBJECT WRITE BEGIN ---
  2. $guiContent = new GuiControl(JoystickSettingsDlg) {
  3. position = "0 0";
  4. extent = "1024 768";
  5. minExtent = "8 8";
  6. horizSizing = "right";
  7. vertSizing = "bottom";
  8. profile = "GuiModelessDialogProfile";
  9. visible = "1";
  10. active = "1";
  11. tooltipProfile = "GuiToolTipProfile";
  12. hovertime = "1000";
  13. isContainer = "1";
  14. canSave = "1";
  15. canSaveDynamicFields = "1";
  16. axisDeadzone = "0.1";
  17. maxLines = "500";
  18. new GuiContainer() {
  19. margin = "0 0 0 0";
  20. padding = "0 0 0 0";
  21. anchorTop = "1";
  22. anchorBottom = "0";
  23. anchorLeft = "1";
  24. anchorRight = "0";
  25. position = "212 184";
  26. extent = "600 404";
  27. minExtent = "8 2";
  28. horizSizing = "center";
  29. vertSizing = "center";
  30. profile = "GuiEventBackgroundProfile";
  31. visible = "1";
  32. active = "1";
  33. tooltipProfile = "GuiToolTipProfile";
  34. hovertime = "1000";
  35. isContainer = "1";
  36. canSave = "1";
  37. canSaveDynamicFields = "0";
  38. new GuiTextCtrl() {
  39. text = "Input Monitor Settings/Joystick Devices";
  40. maxLength = "255";
  41. margin = "0 0 0 0";
  42. padding = "0 0 0 0";
  43. anchorTop = "1";
  44. anchorBottom = "0";
  45. anchorLeft = "1";
  46. anchorRight = "0";
  47. position = "12 4";
  48. extent = "578 20";
  49. minExtent = "8 8";
  50. horizSizing = "width";
  51. vertSizing = "bottom";
  52. profile = "GuiMenuButtonProfile";
  53. visible = "1";
  54. active = "1";
  55. tooltipProfile = "GuiToolTipProfile";
  56. hovertime = "1000";
  57. isContainer = "1";
  58. canSave = "1";
  59. canSaveDynamicFields = "0";
  60. };
  61. new GuiCheckBoxCtrl() {
  62. text = "pref::Input::JoystickEnabled";
  63. groupNum = "-1";
  64. buttonType = "ToggleButton";
  65. useMouseEvents = "0";
  66. position = "40 28";
  67. extent = "250 20";
  68. minExtent = "8 2";
  69. horizSizing = "right";
  70. vertSizing = "bottom";
  71. profile = "GuiEventCheckboxProfile";
  72. visible = "1";
  73. active = "1";
  74. variable = "$pref::Input::JoystickEnabled";
  75. tooltipProfile = "GuiToolTipProfile";
  76. hovertime = "1000";
  77. isContainer = "0";
  78. canSave = "1";
  79. canSaveDynamicFields = "0";
  80. };
  81. new GuiCheckBoxCtrl() {
  82. text = "pref::Input::sdlControllerEnabled";
  83. groupNum = "-1";
  84. buttonType = "ToggleButton";
  85. useMouseEvents = "0";
  86. position = "326 28";
  87. extent = "250 20";
  88. minExtent = "8 2";
  89. horizSizing = "right";
  90. vertSizing = "bottom";
  91. profile = "GuiEventCheckboxProfile";
  92. visible = "1";
  93. active = "1";
  94. variable = "$pref::Input::sdlControllerEnabled";
  95. tooltipProfile = "GuiToolTipProfile";
  96. hovertime = "1000";
  97. isContainer = "0";
  98. canSave = "1";
  99. canSaveDynamicFields = "0";
  100. };
  101. new GuiCheckBoxCtrl() {
  102. text = "4 Axis Joystick Split L/R";
  103. groupNum = "-1";
  104. buttonType = "ToggleButton";
  105. useMouseEvents = "0";
  106. position = "40 52";
  107. extent = "206 20";
  108. minExtent = "8 2";
  109. horizSizing = "right";
  110. vertSizing = "bottom";
  111. profile = "GuiEventCheckboxProfile";
  112. visible = "1";
  113. active = "1";
  114. variable = "$pref::Input::JoystickSplitAxesLR";
  115. tooltipProfile = "GuiToolTipProfile";
  116. tooltip = "Split axis inputs on 4 axis joysticks. This has no effect on any other device.\n4 Axis joysticks use IDs 0-3 which get mapped to xaxis, yaxis, zaxis and rxaxis. When true, this will increment IDs 2 and 3 so the inputs map to xaxis, yaxis, rxaxis and ryaxis.";
  117. hovertime = "1000";
  118. isContainer = "0";
  119. canSave = "1";
  120. canSaveDynamicFields = "0";
  121. };
  122. new GuiCheckBoxCtrl() {
  123. text = "POV Button Events";
  124. groupNum = "-1";
  125. buttonType = "ToggleButton";
  126. useMouseEvents = "0";
  127. position = "252 52";
  128. extent = "155 20";
  129. minExtent = "8 2";
  130. horizSizing = "right";
  131. vertSizing = "bottom";
  132. profile = "GuiEventCheckboxProfile";
  133. visible = "1";
  134. active = "1";
  135. variable = "$pref::Input::JoystickPOVButtons";
  136. tooltipProfile = "GuiToolTipProfile";
  137. tooltip = "(Joystick only) If true, the pov hat will be treated as 4 buttons and make/break events will be generated for upov, dpov, lpov and rpov.";
  138. hovertime = "1000";
  139. isContainer = "0";
  140. canSave = "1";
  141. canSaveDynamicFields = "0";
  142. };
  143. new GuiCheckBoxCtrl() {
  144. text = "POV Mask Events";
  145. groupNum = "-1";
  146. buttonType = "ToggleButton";
  147. useMouseEvents = "0";
  148. position = "420 52";
  149. extent = "156 20";
  150. minExtent = "8 2";
  151. horizSizing = "right";
  152. vertSizing = "bottom";
  153. profile = "GuiEventCheckboxProfile";
  154. visible = "1";
  155. active = "1";
  156. variable = "$pref::Input::JoystickPOVMask";
  157. tooltipProfile = "GuiToolTipProfile";
  158. tooltip = "(Joystick only) If true, the pov hat will be treated as a single input with a 4 bit mask value. The povmask event will be generated with the current mask every time the mask value changes.";
  159. hovertime = "1000";
  160. isContainer = "0";
  161. canSave = "1";
  162. canSaveDynamicFields = "0";
  163. };
  164. new GuiTextCtrl() {
  165. text = "Input Monitor Axis Deadzone";
  166. maxLength = "255";
  167. margin = "0 0 0 0";
  168. padding = "0 0 0 0";
  169. anchorTop = "1";
  170. anchorBottom = "0";
  171. anchorLeft = "1";
  172. anchorRight = "0";
  173. position = "40 76";
  174. extent = "208 20";
  175. minExtent = "8 8";
  176. horizSizing = "width";
  177. vertSizing = "bottom";
  178. profile = "GuiEventCheckboxProfile";
  179. visible = "1";
  180. active = "1";
  181. tooltipProfile = "GuiToolTipProfile";
  182. hovertime = "1000";
  183. isContainer = "1";
  184. canSave = "1";
  185. canSaveDynamicFields = "0";
  186. };
  187. new GuiSliderCtrl() {
  188. range = "0 1";
  189. ticks = "0";
  190. snap = "0";
  191. value = "0";
  192. position = "256 80";
  193. extent = "215 20";
  194. minExtent = "8 2";
  195. horizSizing = "right";
  196. vertSizing = "bottom";
  197. profile = "GuiSliderProfile";
  198. visible = "1";
  199. active = "1";
  200. variable = "InputMonitorDlg.axisDeadzone";
  201. tooltipProfile = "GuiToolTipProfile";
  202. hovertime = "1000";
  203. isContainer = "0";
  204. canSave = "1";
  205. canSaveDynamicFields = "0";
  206. };
  207. new GuiTextCtrl() {
  208. text = "0";
  209. maxLength = "255";
  210. margin = "0 0 0 0";
  211. padding = "0 0 0 0";
  212. anchorTop = "1";
  213. anchorBottom = "0";
  214. anchorLeft = "1";
  215. anchorRight = "0";
  216. position = "476 76";
  217. extent = "100 20";
  218. minExtent = "8 8";
  219. horizSizing = "width";
  220. vertSizing = "bottom";
  221. profile = "GuiEventCheckboxProfile";
  222. visible = "1";
  223. active = "1";
  224. variable = "InputMonitorDlg.axisDeadzone";
  225. tooltipProfile = "GuiToolTipProfile";
  226. hovertime = "1000";
  227. isContainer = "1";
  228. canSave = "1";
  229. canSaveDynamicFields = "0";
  230. };
  231. new GuiScrollCtrl(IEMDeviceScroll) {
  232. willFirstRespond = "1";
  233. hScrollBar = "alwaysOff";
  234. vScrollBar = "dynamic";
  235. lockHorizScroll = "0";
  236. lockVertScroll = "0";
  237. constantThumbHeight = "0";
  238. childMargin = "0 0";
  239. mouseWheelScrollSpeed = "-1";
  240. margin = "0 0 0 0";
  241. padding = "0 0 0 0";
  242. anchorTop = "1";
  243. anchorBottom = "0";
  244. anchorLeft = "1";
  245. anchorRight = "0";
  246. position = "12 100";
  247. extent = "578 268";
  248. minExtent = "8 2";
  249. horizSizing = "right";
  250. vertSizing = "bottom";
  251. profile = "ConsoleScrollProfile";
  252. visible = "1";
  253. active = "1";
  254. tooltipProfile = "GuiToolTipProfile";
  255. hovertime = "1000";
  256. isContainer = "1";
  257. canSave = "1";
  258. canSaveDynamicFields = "0";
  259. new GuiDynamicCtrlArrayControl() {
  260. colCount = "0";
  261. colSize = "562";
  262. rowCount = "0";
  263. rowSize = "132";
  264. rowSpacing = "2";
  265. colSpacing = "0";
  266. frozen = "0";
  267. autoCellSize = "0";
  268. fillRowFirst = "1";
  269. dynamicSize = "1";
  270. padding = "0 0 0 0";
  271. position = "1 1";
  272. extent = "566 189";
  273. minExtent = "8 2";
  274. horizSizing = "right";
  275. vertSizing = "bottom";
  276. profile = "GuiDefaultProfile";
  277. visible = "1";
  278. active = "1";
  279. tooltipProfile = "GuiToolTipProfile";
  280. hovertime = "1000";
  281. isContainer = "1";
  282. internalName = "deviceArray";
  283. canSave = "1";
  284. canSaveDynamicFields = "0";
  285. };
  286. };
  287. new GuiContainer(DevicePrototype) {
  288. margin = "0 0 0 0";
  289. padding = "0 0 0 0";
  290. anchorTop = "1";
  291. anchorBottom = "0";
  292. anchorLeft = "1";
  293. anchorRight = "0";
  294. position = "0 0";
  295. extent = "562 132";
  296. minExtent = "8 2";
  297. horizSizing = "right";
  298. vertSizing = "bottom";
  299. profile = "GuiEventBorderProfile";
  300. visible = "0";
  301. active = "1";
  302. tooltipProfile = "GuiToolTipProfile";
  303. hovertime = "1000";
  304. isContainer = "1";
  305. hidden = "1";
  306. canSave = "1";
  307. canSaveDynamicFields = "0";
  308. new GuiTextCtrl() {
  309. text = "";
  310. maxLength = "255";
  311. margin = "0 0 0 0";
  312. padding = "0 0 0 0";
  313. anchorTop = "1";
  314. anchorBottom = "0";
  315. anchorLeft = "1";
  316. anchorRight = "0";
  317. position = "8 8";
  318. extent = "386 20";
  319. minExtent = "8 8";
  320. horizSizing = "right";
  321. vertSizing = "bottom";
  322. profile = "GuiEventCheckboxProfile";
  323. visible = "1";
  324. active = "1";
  325. tooltipProfile = "GuiToolTipProfile";
  326. hovertime = "1000";
  327. isContainer = "1";
  328. internalName = "DeviceName";
  329. canSave = "1";
  330. canSaveDynamicFields = "0";
  331. };
  332. new GuiTextCtrl() {
  333. text = "";
  334. maxLength = "255";
  335. margin = "0 0 0 0";
  336. padding = "0 0 0 0";
  337. anchorTop = "1";
  338. anchorBottom = "0";
  339. anchorLeft = "1";
  340. anchorRight = "0";
  341. position = "384 8";
  342. extent = "166 20";
  343. minExtent = "8 8";
  344. horizSizing = "right";
  345. vertSizing = "bottom";
  346. profile = "GuiEventTextProfile";
  347. visible = "1";
  348. active = "1";
  349. tooltipProfile = "GuiToolTipProfile";
  350. hovertime = "1000";
  351. isContainer = "1";
  352. internalName = "DeviceOpen";
  353. canSave = "1";
  354. canSaveDynamicFields = "0";
  355. };
  356. new GuiTextCtrl() {
  357. text = "";
  358. maxLength = "255";
  359. margin = "0 0 0 0";
  360. padding = "0 0 0 0";
  361. anchorTop = "1";
  362. anchorBottom = "0";
  363. anchorLeft = "1";
  364. anchorRight = "0";
  365. position = "24 32";
  366. extent = "530 20";
  367. minExtent = "8 8";
  368. horizSizing = "right";
  369. vertSizing = "bottom";
  370. profile = "GuiEventTextProfile";
  371. visible = "1";
  372. active = "1";
  373. tooltipProfile = "GuiToolTipProfile";
  374. hovertime = "1000";
  375. isContainer = "1";
  376. internalName = "DeviceGUID";
  377. canSave = "1";
  378. canSaveDynamicFields = "0";
  379. };
  380. new GuiTextCtrl() {
  381. text = "";
  382. maxLength = "255";
  383. margin = "0 0 0 0";
  384. padding = "0 0 0 0";
  385. anchorTop = "1";
  386. anchorBottom = "0";
  387. anchorLeft = "1";
  388. anchorRight = "0";
  389. position = "24 56";
  390. extent = "530 20";
  391. minExtent = "8 8";
  392. horizSizing = "right";
  393. vertSizing = "bottom";
  394. profile = "GuiEventTextProfile";
  395. visible = "1";
  396. active = "1";
  397. tooltipProfile = "GuiToolTipProfile";
  398. hovertime = "1000";
  399. isContainer = "1";
  400. internalName = "DeviceSpecs";
  401. canSave = "1";
  402. canSaveDynamicFields = "0";
  403. };
  404. new GuiTextCtrl() {
  405. text = "";
  406. maxLength = "255";
  407. margin = "0 0 0 0";
  408. padding = "0 0 0 0";
  409. anchorTop = "1";
  410. anchorBottom = "0";
  411. anchorLeft = "1";
  412. anchorRight = "0";
  413. position = "24 80";
  414. extent = "530 20";
  415. minExtent = "8 8";
  416. horizSizing = "right";
  417. vertSizing = "bottom";
  418. profile = "GuiEventTextProfile";
  419. visible = "1";
  420. active = "1";
  421. tooltipProfile = "GuiToolTipProfile";
  422. hovertime = "1000";
  423. isContainer = "1";
  424. internalName = "DeviceDetails";
  425. canSave = "1";
  426. canSaveDynamicFields = "0";
  427. };
  428. new GuiButtonCtrl() {
  429. text = "Open as Joystick";
  430. groupNum = "-1";
  431. buttonType = "PushButton";
  432. useMouseEvents = "0";
  433. position = "30 104";
  434. extent = "240 24";
  435. minExtent = "8 8";
  436. horizSizing = "right";
  437. vertSizing = "top";
  438. profile = "GuiMenuButtonProfile";
  439. visible = "1";
  440. active = "1";
  441. tooltipProfile = "GuiToolTipProfile";
  442. hovertime = "1000";
  443. isContainer = "0";
  444. internalName = "button1";
  445. canSave = "1";
  446. canSaveDynamicFields = "0";
  447. };
  448. new GuiButtonCtrl() {
  449. text = "Open as Game Controller";
  450. groupNum = "-1";
  451. buttonType = "PushButton";
  452. useMouseEvents = "0";
  453. position = "292 104";
  454. extent = "240 24";
  455. minExtent = "8 8";
  456. horizSizing = "left";
  457. vertSizing = "top";
  458. profile = "GuiMenuButtonProfile";
  459. visible = "1";
  460. active = "1";
  461. tooltipProfile = "GuiToolTipProfile";
  462. hovertime = "1000";
  463. isContainer = "0";
  464. internalName = "button2";
  465. canSave = "1";
  466. canSaveDynamicFields = "0";
  467. };
  468. };
  469. new GuiButtonCtrl() {
  470. text = "Done";
  471. groupNum = "-1";
  472. buttonType = "PushButton";
  473. useMouseEvents = "0";
  474. position = "260 376";
  475. extent = "80 24";
  476. minExtent = "8 8";
  477. horizSizing = "center";
  478. vertSizing = "top";
  479. profile = "GuiMenuButtonProfile";
  480. visible = "1";
  481. active = "1";
  482. command = "JoystickSettingsDlg.closeSettings();";
  483. accelerator = "escape";
  484. tooltipProfile = "GuiToolTipProfile";
  485. hovertime = "1000";
  486. isContainer = "0";
  487. canSave = "1";
  488. canSaveDynamicFields = "0";
  489. };
  490. };
  491. };
  492. //--- OBJECT WRITE END ---