@Danny I would still like to know what reset binding does?
@Danny I would still like to know what reset binding does?
reset_binding will turn off all actions within that binding. Some cases like on_only or if it is already disabled will prevent them from turning off.
I used it in crysis for going prone from crouch because i made crouch a toggle.
Danny Woodall
Creative Director
Sixense Entertainment Inc.
Thanks Danny, you used it in the 1-handed version of Skyrim for walk/run but I can't get it to work in the normal version of Skyrim after copying it over. I think all the possibilities that you have made for MCEs are fantastic and if you really take your time you can make a pretty complex MCE - I have made one for Dark Messiah of Might and Magic with gestures on both hands.
Haha, If you notice, Walk is on_only. Exactly the condition that prevents reset binding from working. This is all you should need:
You have to add a toggle for toggle run though because Skyrim seems to toggle that button on its own sometimes coming in and out of menus or interactions.Code:<!--Initial Walk--> <binding> <name>Initial Walk</name> <description/> <conditions> <joystick> <controller>P1L</controller> <direction>any</direction> <filter>normal</filter> <dead_zone>0.04</dead_zone> </joystick> </conditions> <actions> <key>left_shift</key> </actions> </binding> <!--Walk from run--> <binding> <name>Walk</name> <description/> <conditions> <joystick> <controller>P1L</controller> <direction>any</direction> <filter>on_fall</filter> <dead_zone>0.65</dead_zone> </joystick> </conditions> <actions> <key> <which>left_shift</which> <on_only>true</on_only> </key> </actions> </binding> <!--Run--> <binding> <name>Run</name> <description/> <conditions> <joystick> <controller>P1L</controller> <direction>any</direction> <filter>on_rise</filter> <dead_zone>0.65</dead_zone> </joystick> </conditions> <actions> <key>left_shift</key> </actions> </binding>
Danny Woodall
Creative Director
Sixense Entertainment Inc.
Thanks again Danny, Skyrim is working now. I would like to know what 'on_only' does and as far as I can see it is not possible to use a point gesture with a button from the other controller than the gesture - is that so?
on_only and off_only are used for Actions. When all of the binding conditions are true, all of the actions are turned on. When one or all conditions become false, all actions are turned off.
In the most simple of cases where a button press on a controller sends a keyboard press event.
When button 2 on the left controller is pressed, press key aCode:<binding> <conditions> <button> <controller>P1L</controller> <which>2</which> </button> </conditions> <actions> <key> <which>a</which> </key> </actions> </binding>
When button 2 on the left controller is presssed, release key a
if you changed the action:
Now the KeyPress Action will only turn on, not turn off. In this case, when button 2 on the left controller is pressed, press key a but do not release key a when button 2 is released. Some other action should turn off the key press with off_onlyCode:<key> <which>a</which> <on_only>true</on_only> </key>
You can define the button that activates the point gesture with a button tag that allows for a controller and a which tag:
Code:<binding> <conditions> <point_gesture> <controller>P1L</controller> <direction>up</direction> <button> <controller>P1L</controller> <which>2</which> </button> </point_gesture> </conditions> <actions> <key> <which>a</which> </key> </actions> </binding>
Danny Woodall
Creative Director
Sixense Entertainment Inc.
There seems to be a problem with this. I have defined point gestures on both controllers, the left controller with a deadzone of 300 and the right controller with a deadzone of 200. If I use the bumper of the right controller for the point gesture down on the left controller it works fine but afterwards the point gesture left on the right controller which uses the same bumper does not work properly, it seems to have a different deadzone, I don't know what exactly.
can you paste your bindings for me to look at?
Danny Woodall
Creative Director
Sixense Entertainment Inc.