diff options
author | Garrett Brown <themagnificentmrb@gmail.com> | 2016-04-13 19:40:42 -0700 |
---|---|---|
committer | Garrett Brown <themagnificentmrb@gmail.com> | 2016-08-06 12:55:46 -0700 |
commit | 3c295e15494aea6ad47597659e06c377a77024c1 (patch) | |
tree | 468675734c46513b330620f061f0993818f8277c /addons/game.controller.default | |
parent | 79e2f50c94147eca7616e7af30142f1d9a0b768c (diff) |
[controllers] use "category" for element name and add haptics
Diffstat (limited to 'addons/game.controller.default')
-rw-r--r-- | addons/game.controller.default/resources/layout.xml | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/addons/game.controller.default/resources/layout.xml b/addons/game.controller.default/resources/layout.xml index 77a308e7aa..b8df0e6b41 100644 --- a/addons/game.controller.default/resources/layout.xml +++ b/addons/game.controller.default/resources/layout.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <layout name="default" label="30000" image="layout.png"> - <face> + <category name="face"> <button name="a" type="digital" label="30001" geometry="circle" x="651" y="266" radius="32"/> <button name="b" type="digital" label="30002" geometry="circle" x="709" y="210" radius="32"/> <button name="x" type="digital" label="30003" geometry="circle" x="583" y="210" radius="32"/> @@ -9,22 +9,26 @@ <button name="back" type="digital" label="30006" geometry="ellipse" x="290" y="227" rx="22" ry="16"/> <button name="guide" type="digital" label="30007" geometry="circle" x="386" y="221" radius="50"/> <button name="up" type="digital" label="30010" geometry="circle" x="117" y="234" r="52"/> - <button name="down" type="digital" label="30011" geometry="circle" x="500" y="342" r="52"/> <button name="right" type="digital" label="30012" geometry="rectangle" x1="233" y1="288" x2="281" y2="332"/> + <button name="down" type="digital" label="30011" geometry="circle" x="500" y="342" r="52"/> <button name="left" type="digital" label="30013" geometry="rectangle" x1="233" y1="353" x2="281" y2="397"/> <button name="leftthumb" type="digital" label="30008" geometry="rectangle" x1="131" y1="0" x2="194" y2="40"/> <button name="rightthumb" type="digital" label="30009" geometry="rectangle" x1="567" y1="0" x2="631" y2="40"/> - </face> - <shoulder> + </category> + <category name="shoulder"> <button name="leftbumper" type="digital" label="30014" geometry="rectangle" x1="272" y1="321" x2="316" y2="365"/> <button name="rightbumper" type="digital" label="30015" geometry="rectangle" x1="198" y1="321" x2="242" y2="365"/> - </shoulder> - <triggers> + </category> + <category name="triggers"> <button name="lefttrigger" type="analog" label="30016" geometry="rectangle" x1="36" y1="40" x2="207" y2="108"/> <button name="righttrigger" type="analog" label="30017" geometry="rectangle" x1="556" y1="40" x2="728" y2="108"/> - </triggers> - <analogsticks> + </category> + <category name="analogsticks"> <analogstick name="leftstick" label="30008" geometry="circle" x="500" y="342" r="52"/> <analogstick name="rightstick" label="30009" geometry="circle" x="500" y="342" r="52"/> - </analogsticks> + </category> + <category name="haptics"> + <motor name="leftmotor"/> + <motor name="rightmotor"/> + </category> </layout> |