labvanced logoLabVanced
  • Research
    • Publications
    • Researcher Interviews
    • Use Cases
      • Developmental Psychology
      • Linguistics
      • Clinical & Digital Health
      • Educational Psychology
      • Cognitive & Neuro
      • Social & Personality
      • Arts Research
      • Sports & Movement
      • Marketing & Consumer Behavior
      • Economics
      • HCI / UX
      • Commercial / Industry Use
    • Labvanced Blog
    • Services
  • Technology
    • Feature Overview
    • Code-Free Study Building
    • Eye Tracking
    • Mouse Tracking
    • Generative AI Integration
    • Multi User Studies
    • More ...
      • Reaction Time/Precise Timing
      • Text Transcription
      • Heart Rate Detection (rPPG)
      • Questionnaires/Surveys
      • Experimental Control
      • Data Privacy & Security
      • Desktop App
      • Mobile App
  • Learn
    • Guide
    • Videos
    • Walkthroughs
    • FAQ
    • Release Notes
    • Documents
    • Classroom
  • Experiments
    • Cognitive Tests
    • Sample Studies
    • Public Experiment Library
  • Pricing
    • Licenses
    • Top-Up Recordings
    • Subject Recruitment
    • Study Building
    • Dedicated Support
    • Checkout
  • About
    • About Us
    • Contact
    • Downloads
    • Careers
    • Impressum
    • Disclaimer
    • Privacy & Security
    • Terms & Conditions
  • Appgo to app icon
  • Logingo to app icon
Learn
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
  • Guide
    • GETTING STARTED

      • Task Editor
      • Stimulus Presentation
      • Correctness of Response
      • Objects
      • Events
      • Variables
      • Task Wizard
      • Trial System
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
    • FEATURED TOPICS

      • Randomization & Balance
      • Eye Tracking
      • Questionnaires
      • Desktop App
      • Sample Studies
      • Participant Recruitment
      • API Access
        • REST API
        • Webhook API
        • WebSocket API
      • Other Topics

        • Precise Stimulus Timings
        • Multi User Studies
        • Head Tracking in Labvanced | Guide
    • MAIN APP TABS

      • Overview: Main Tabs
      • Dashboard
      • My Studies
      • Shared Studies
      • My Files
      • Experiment Library
      • My Account
      • My License
    • STUDY TABS

      • Overview: Study-Specific Tabs
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
      • Task Editor
        • Task Controls
        • The Trial System
        • Canvas and Page Frames
        • Objects
        • Object Property Tables
        • Variables
        • System Variables Tables
        • The Event System
        • Text Editor Functions
        • Eyetracking in a Task
        • Head Tracking in a Task
        • Multi-User Studies
      • Settings
      • Variables
      • Media
      • Texts & Translate
      • Launch & Participate
      • Subject Management
      • Dataview and Export
        • Dataview and Variable & Task Selection (OLD Version)
        • Accessing Recordings (OLD Version)
  • Videos
    • Video Overview
    • Getting Started in Labvanced
    • Creating Tasks
    • Element Videos
    • Events & Variables
    • Advanced Topics
  • Walkthroughs
    • Introduction
    • Stroop Task
    • Lexical Decision Task
    • Posner Gaze Cueing Task
    • Change Blindness Flicker Paradigm
    • Eye-tracking Sample Study
    • Infant Eye-tracking Study
    • Attentional Capture Study with Mouse Tracking
    • Rapid Serial Visual Presentation
    • ChatGPT Study
    • Eye Tracking Demo: SVGs as AOIs
    • Multi-User Demo: Show Subjects' Cursors
    • Gamepad / Joystick Controller- Basic Set Up
    • Desktop App Study with EEG Integration
    • Between-subjects Group Balancing and Variable Setup
  • FAQ
    • Features
    • Security & Data Privacy
    • Licensing
    • Precision of Labvanced
    • Programmatic Use & API
    • Using Labvanced Offline
    • Troubleshooting
    • Study Creation Questions
  • Newsletter Archive
  • Documents
  • Classroom

Gamepad / Joystick Trigger

The Gamepad/ Joystick Trigger allows you to make use of gamepad and joystick controllers in your experimental design as an input device for recording data. Note: remember to enable this option under the Settings tab.

game pad trigger menu option

Upon selecting this trigger, the following dialog box will appear.

game pad trigger menu options dialog box

Upon connecting your gamepad, you can specify what specific keys should be used as triggers. Upon pressing the particular key, the system will display its ID.

In the example below the 2 refers to the ◎ key and 3 refers to the ▵ key. Note: It’s important to say that there is some variation between game pads in how key ID assignment works.

game pad trigger, setting keys for commands

As a result of pressing a key, the live data will also appear in the second half of this trigger dialog box where you can see how the values change in real-time based on what you press or release:

game pad trigger live data feed

Take a look at this walkthrough for more details and an example of a study that utilizes this trigger.

The table below explains these options in greater detail.

Menu ItemMenu AreaGamepad / Joystick Trigger Options
Listen for buttonsSetting the trigger to listen for buttonsI.) Specify the trigger is button-related and whether its on press key, press or release key, or release key.

II.) Specify if the trigger is for any button or a specific button. If the specific option is selected, you will be prompted to press the button(s) on your gamepad.
Listen for axesSetting the trigger to listen to axes changesIf axes movements are required, then you can specify that the trigger will occur whenever the threshold changes by a specific value. The default value is 0.01.
Connection statusGame pad connection statusIndicates whether a device is connected or not.
Live data streamLive data feedUpon connecting the device and pressing a key or moving an axes, then the live data will be displayed where any input you make on your device will be displayed here. This is useful for testing when setting up your study and determining which keys or axes you want to utilize.

Note: After selecting the Gamepad / Joystick trigger in the event system, you have the option of utilizing and referencing its trigger-specific values across various actions with the value-select menu.

Trigger (Gamepad/ Joystick) Values

When a Gamepad/Joystick trigger is used, the following trigger-specific values can be called on when working with certain actions:

game pad trigger menu option

Trigger (Gamepad/ Joystick) OptionsDescription
Gamepad Device IdThe ID or name of the gamepad that was connected.
Pressed Keys (Array)The keys that were pressed.
Pressed OR Hold Keys (Array)The keys that were pressed or held.
Released Keys (Array)The keys that were released.
Axes (Array)The axes values.
Gamepad Timestamp (Unixtime)The gamepad timestamp in Unixtime.
Trigger Timestamp (Unixtime)Timestamp of when the trigger occurs in Unixtime.
Trigger Time (From Frame Onset)Timestamp in Unixtime of when the trigger occurs with relation to the onset of the frame.