Relative Controller position instead of absolute

    Jul 05 2011 | 1:50 am
    Im trying to figure out what is the best way to get a relative position into a float - from a joystick
    that is: I want for example to add to the number of a float box when joystick is pressed forwards and subtract when pressed backwards - and then only do this if the trigger button on the joystick is pressed (othervise the movement of the joystick should have no effect on the floatbox)
    Best regards

    • Jul 05 2011 | 7:10 am
      A suggestion:
    • Jul 05 2011 | 3:10 pm
      Here's an example patch for a related question, which might be of some help to you.
    • Jul 05 2011 | 6:08 pm
      Thanks guys
      But neither pathces do what I am looking for
      The below patch does sort of what I want, but it only increses the value of the lower float box
      I want to be able to trigger the higher float box off/on, which is connected to the absolute position of a mouse or a joystick
      - and then I want the counter objject to (somehow) know if the float in the above number box is increasing or decreasing
      I know I can flip if the counter object counts upwards or downwards with a 0 or 1 message - but I am wandering if there is some way of detecting if the upper float box is increasing or deacreasing; automatically