Joystick Sensor: Button

Joystick Sensor: Button
  • Joystick Buttons (the number of buttons on your joystick might be different):
    • trigger
       
    • back center button
       
    • back bottom left button
       
    • back bottom right button
       
    • back top left button
       
    • back top right button
  • Button pressed: 
    • Sends a positive pulse to the connected controller(s)
  • Button released: 
    • Sends a 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: Button
  • The joystick sensor is triggered by the selected button
All Events: Enabled
  • Button Number is grayed out
     
  • Any/All buttons trigger the Joystick Sensor
Button Number:
  • Range: 0 - 18
     
  • Button numbers for a 6 button joystick (the button numbers for your joystick might be different):
    • 0 = trigger
       
    • 1 = back center button
       
    • 2 = back bottom left button
       
    • 3 = back bottom right button
       
    • 4 = back top left button
       
    • 5 = back top right button
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:
    • Button Pressed:
      • Sends a positive pulse to the connected controller(s) with each logic tic
    • Button Released:
      • Sends one negative pulse to connected controller(s)
    • Button not pressed:
      • No pulse sent
  • Disabled:
    • Button Pressed:
      • Sends one positive pulse to the connected controller(s)
    • Button Released:
      • Sends one negative pulse to the connected controller(s)
    • Button not pressed:
      • No pulse sent
  • The default logic tic rate is 60 per second
False Level Trigger:
  • Enabled:
    • Button Pressed:
      • Sends one positive pulse to the connected controller(s)
    • Button Released:
      • Sends a negative pulse to the connected controller(s) with each logic tic
    • Button not pressed:
      • Sends a negative pulse to the connected controller(s) with each logic tic
  • Disabled:
    • Button Pressed:
      • Sends one positive pulse to the connected controller(s)
    • Button Released:
      • Sends a negative pulse to the connected controller(s) with each logic tic
    • Button not pressed:
      • 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 button pressed:
      • A positive pulse is immediately followed by a negative pulse (next frame) is sent to the connected controller(s)
    • Joystick button released:
      • No pulse sent
  • Disabled:
    • Joystick button pressed:
      • A positive pulse is sent to the connected controller(s)
    • Joystick button released:
      • 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)