Results 1 to 5 of 5

Thread: Ratchet on Joystick deflection

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    9

    Ratchet on Joystick deflection

    Hi,

    I'm mostly using the Dual Analog with the ratchet but would also like to enable ratchet when using the right analog stick. The binding below doesn't work, any ideas?

    Thanks


    <binding>
    <name>Joy Ratchet</name>
    <conditions>
    <joystick>
    <controller>P1R</controller>
    <direction>any</direction>
    <inverted>true</inverted>
    </joystick>
    </conditions>
    <actions>
    <mouse_enable />
    </actions>
    </binding>

  2. #2
    Administrator Danny's Avatar
    Join Date
    Jun 2011
    Posts
    710
    DId you add joystick_config for controller P1R?
    Danny Woodall
    Creative Director
    Sixense Entertainment Inc.

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    9
    Quote Originally Posted by Danny View Post
    DId you add joystick_config for controller P1R?
    I've left the joystick_config as is.

    <!--Player look-->
    <joystick_config>
    <name>Player Look</name>
    <controller>P1R</controller>
    <mode>mouse_move</mode>
    ....

  4. #4
    Administrator Danny's Avatar
    Join Date
    Jun 2011
    Posts
    710
    Okay to allow joystick conditions to work in mouse_move mode check the Allow Conditions checkbox in the editor, or add <allow_mouse_move_test_conditions>true</allow_mouse_move_test_conditions> to the joystick_config if you are editing it manually. Also don't use mouse_enable because the joystick also moves the mouse. Use disable_mouselook

    Code:
    <mouse_pointer>
      <controller>P1R</controller>
      <mode>mouselook</mode>
    </mouse_pointer>
    <joystick_config>
      <controller>P1R</controller>
      <mode>mouse_move</mode>
      <allow_mouse_move_test_conditions>true</allow_mouse_move_test_conditions>
    </joystick_config>
    <binding>
      <name>New Binding</name>
      <conditions>
        <joystick>
          <controller>P1R</controller>
          <direction>any</direction>
        </joystick>
      </conditions>
      <actions>
        <disable_mouselook/>
      </actions>
    </binding>
    Danny Woodall
    Creative Director
    Sixense Entertainment Inc.

  5. #5
    Junior Member
    Join Date
    Feb 2012
    Posts
    9
    Works great, thank you Danny.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •