Results 1 to 8 of 8

Thread: Reset binding?

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    18

    Reset binding?

    @Danny I would still like to know what reset binding does?

  2. #2
    Administrator Danny's Avatar
    Join Date
    Jun 2011
    Posts
    897
    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 Studios

    Our STEM System Kickstarter project has been funded! More information at
    sixense.com/stem

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    18
    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.

  4. #4
    Administrator Danny's Avatar
    Join Date
    Jun 2011
    Posts
    897
    Haha, If you notice, Walk is on_only. Exactly the condition that prevents reset binding from working . This is all you should need:
    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>
    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.
    Danny Woodall
    Creative Director
    Sixense Studios

    Our STEM System Kickstarter project has been funded! More information at
    sixense.com/stem

  5. #5
    Junior Member
    Join Date
    Mar 2012
    Posts
    18
    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?

  6. #6
    Administrator Danny's Avatar
    Join Date
    Jun 2011
    Posts
    897
    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.

    Code:
    <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 pressed, press key a
    When button 2 on the left controller is presssed, release key a

    if you changed the action:
    Code:
    <key>
      <which>a</which>
      <on_only>true</on_only>
    </key>
    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_only


    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 Studios

    Our STEM System Kickstarter project has been funded! More information at
    sixense.com/stem

  7. #7
    Junior Member
    Join Date
    Mar 2012
    Posts
    18
    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.

  8. #8
    Administrator Danny's Avatar
    Join Date
    Jun 2011
    Posts
    897
    can you paste your bindings for me to look at?
    Danny Woodall
    Creative Director
    Sixense Studios

    Our STEM System Kickstarter project has been funded! More information at
    sixense.com/stem


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -8. The time now is 02:12 AM.
Powered by vBulletin® Version 4.2.2
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com