Joystick Sensor: Hat

Joystick Sensor: Hat
  • Moving the hat in the selected direction sends a positive pulse to the connected controller(s)
     
  • Returning the hat to the center from the selected direction sends one negative pulse to the connected controller(s)
Index:
  • The game engine can handle input from multiple connected joysticks
     
  • Index number selects a connected joystick
     
  • Range:
    • 0 - 7
Event Type: Hat
  • The joystick sensor is triggered by the movement of the hat in the selected axis direction
Hat Number:
  • The number of the hat that triggers the sensor
     
  • Range:
    • 1 - 2
All Events: Enabled
  • Any/All movement of the hat triggers the Joystick Sensor
     
  • Hat Direction is grayed out
Hat Direction:
  • The direction of the hat that triggers the sensor
     
  • Direction:
    • Up
       
    • Down
       
    • Left
       
    • Right
       
    • Up/Right
       
    • Up/Left
       
    • Down/Right
       
    • Down/Left
Joystick:
  • The type of Sensor
Name:
  • Sensor name
Pin:
  • Enabled: 
    • Always display the Sensor
  • Disabled: 
    • Only display when the State Mask group the Sensor is linked to is being displayed
Checkbox:
  • Enabled:
    • Sensor is turned on
  • Disabled:
    • Sensor is turned off
True Level Trigger:
  • Enabled:
    • Hat moved in the selected Axis Direction:
      • Sends a positive pulse to the connected controller(s) with each logic tic
    • Hat returned to center from selected Axis Direction:
      • Sends one negative pulse to the connected controller(s)
    • Hat centered:
      • No pulse sent
  • Disabled:
    • Hat moved in the selected Axis Direction:
      • Sends one positive pulse to the connected controller(s)
    • Hat returned to center from selected Axis Direction:
      • Sends one negative pulse to connected controller(s)
    • Hat centered:
      • No pulse sent
  • The default logic tic rate is 60 per second
False Level Trigger:
  • Enabled:
    • Hat moved in the selected Axis Direction:
      • Sends one positive pulse to the connected controller(s)
    • Hat returned to center from selected Axis Direction:
      • Sends a negative pulse to the connected controller(s) with each logic tic
    • Hat centered:
      • Sends a negative pulse to the connected controller(s) with each logic tic
  • Disabled:
    • Hat moved in the selected Axis Direction:
      • Sends one positive pulse to the connected controller(s)
    • Hat returned to center from selected Axis Direction:
      • Sends one negative pulse to connected controller(s)
    • Hat centered:
      • No pulse sent
  • The default logic tic rate is 60 per second
Skip:
  • Used with True Level Trigger and False Level Trigger
     
  • Skips the number of logic tics entered before sending the next pulse.
Level:
  • Enabled:
    • Switching from a State Mask group the sensor belongs to to a State Mask group it doesn't belong to:
      • Sensor is deactivated
    • Switching from a State Mask group the sensor doesn't belong to to a State Mask group it belongs to:
      • Sensor is activated. Uses last input before being deactivated
  • Disabled:
    • Switching from a State Mask group the sensor belongs to to a State Mask group it doesn't belong to:
      • Sensor is deactivated
    • Switching from a State Mask group the sensor doesn't belong to to a State Mask group it belongs to:
      • Sensor is activated
Tap:
  • Enabled:
    • Joystick hat moved in the selected direction:
      • A positive pulse is immediately followed by a negative pulse (next frame) is sent to the connected controller(s)
    • Joystick hat returns to center:
      • No pulse sent
  • Disabled:
    • Joystick hat moved in the selected direction:
      • A positive pulse is sent to the connected controller(s)
    • Joystick hat returns to center:
      • A negative pulse is sent to the connected controller(s)
  • True Level Trigger enabled and Skip = 0: 
    • Never has a chance to send a negative pulse
Invert:
  • Inverts the output of the triggers.
     
  • A positive trigger event sends a negative pulse.
     
  • A negative trigger event sends a positive pulse.
Note:
  • Sensors can be connected to more than one controller
     
  • Sensors connected to a controller(s) belong to the same State Mask group(s) as the controller(s)