===== Advanced Chording Concepts ===== When creating a chord, you can assign actions from six distinct **action classes**: * **Keyboard:** Standard keyboard keystrokes and shortcuts. * **Mouse:** Mouse clicks and directional cursor movements. * **Scroll:** Vertical and horizontal scroll actions. * **Consumer:** Media controls (Play, Pause, Volume, etc.) and OS commands. * **Haptic:** Feedback vibrations triggered by chords if haptic engine is installed. * **Delay:** Pause durations inserted between keystroke sequences. * **System:** Reassign system commands to new chords. ---- {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_Tuner_AddButton.jpg|Tuner Action Class Selection Menu}} ==== Keyboard ==== Keyboard actions emulate a standard 101-key keyboard. Selecting this option allows you to type directly into the field using your keyboard. ---- === Key Types & Syntax === * **Standard Keys:** Press any standard letter, number, or symbol on your physical keyboard to record it. * **Modifier Keys:** Keys like ''SHIFT'', ''CTRL'', and ''ALT'' require tag syntax to modify text. Learn more about utilizing tags here: [[tuner_key_syntax|Tags]]. * **Special Keys:** Keys not found on standard keyboards can be entered using explicit tags (e.g., ''''). ---- === Direct HID Code Entry === For advanced configuration, you can enter direct HID codes using this syntax: * **HID Standard Reference:** The Twiddler supports codes listed in **Section 10: Keyboard/Keypad Page (0x07)** of the official [[https://www.usb.org/sites/default/files/hut1_2.pdf|USB HID Usage Tables]]. * **Hex to Decimal Conversion:** Usage IDs in the official USB document are listed in **Hexadecimal (HEX)**. You must convert the HEX value to **Decimal** before entering it into the Tuner. Alternatively, in the **View** menu, you can select **Hexadecimal Codes** to enter HEX values directly. * **Non-English Character Support:** The HID specification only defines standard Latin characters found on US keyboards. International and non-English character support is handled by your host OS region and language settings, not the Twiddler hardware. More on that here: [[nonenglishchars|Non-English Characters]] {{https://tgimages.s3.amazonaws.com/twiddler/wiki/Tuner_Keyboard_Action.png|Keyboard Action Interface}} ---- ==== Mouse ==== {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_Tuner_MouseClickLeft.png|Mouse Action Selection}} Mouse actions allow you to assign standard mouse functions directly to any key or chord: * **Clicks:** Left, Middle, and Right Click, as well as Left Double-Click. * **Button Hold (Down):** Left, Middle, and Right Button Down. This creates a toggle click-and-hold effect, allowing you to select and drag objects without holding down the physical button. //Note: Mouse actions can be assigned to finger keys as well as the dedicated Mouse Buttons (''F0L'', ''F0R'', ''F0M'').// > **Automatic Macro Generation:** > Selecting **Mouse > Click Left** automatically generates a sequence of three distinct actions: > {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_Tuner_MouseActionSave.png|Mouse Action Sequence Breakdown}} > You can customize, delay, or remove any of these generated steps to match your application's requirements. ---- ==== Scroll ==== {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_Tuner_Scroll.png|Scroll Selection}} Scroll actions send Mouse Mickeys to the host. ---- ==== System ==== System actions are standard Twiddler system actions that you can map to alternate chords or use them in your own complex chord. {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_Tuner_System.png}} ==== Consumer ==== Consumer actions utilize standard **Consumer Page (`0x0C`)** reports found in **Section 15** of the official [[https://www.usb.org/sites/default/files/hut1_2.pdf|USB HID Usage Tables]] (p. 118). {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_Tuner_Consumer.png|Consumer Action Selection}} These actions trigger system-level media and utility commands on supported host devices. For example, **Volume Up**, a function typically found on multimedia keyboards or mobile device accessory buttons rather than a standard 101-keyboard, can be assigned to a Twiddler chord to directly control your host's audio output. {{https://tgimages.s3.amazonaws.com/twiddler/wiki/Tuner_Consumer_Action.png|Configured Consumer Action in Sequence}} ==== Haptic ==== For Twiddler units equipped with a haptic feedback module and running **v6 firmware**, haptic feedback events can be integrated at any point within a chord sequence. {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_Tuner_Haptic.png|Haptic Action Selection}} {{https://tgimages.s3.amazonaws.com/twiddler/wiki/Tuner_Haptic_Action.png|Configured Haptic Action in Sequence}} ==== Delay ==== {{https://tgimages.s3.amazonaws.com/twiddler/wiki/T4_Tuner_Delay.png|Delay Action Selection}} The **Delay** action inserts a pause into a macro sequence. *Note: You can only add a delay once other actions have already been assigned to the chord.* ---- === Why Use Delays? === The Twiddler transmits commands as fast as it can. In some cases, a complex multi-character chord can overwhelm the host device's input buffer, leading to dropped keystrokes. Inserting a brief delay gives the host computer time to catch up and clear its buffer. ---- === Delay Options & Customization === * **Presets:** Includes two standard quick-select presets for **0.5 seconds** and **1.0 second**. * **Custom Range:** The delay duration can be manually configured anywhere from **10 ms to 10 seconds**. {{https://tgimages.s3.amazonaws.com/twiddler/wiki/Tuner_Delay_Action.png|Configured Delay Action in Sequence}} ==== Putting It All Together ==== You can combine multiple action classes into a single chord to perform complex, multi-step macros. For example, a single chord can be configured to execute the following sequence: * Send a **Left Shifted "abc"** followed by **HID Code 7 ("d")** (resulting in output like ''ABDd''). * Illuminate a **Keyboard Status LED**. * Increase the system **Volume** by 1. * Pause for a **1-second delay**. * Trigger the **Haptic Engine** to soft bump at**30%** intensity, signaling that the chord sequence is complete. {{https://tgimages.s3.amazonaws.com/twiddler/wiki/Tuner_Actions.png|Multi-Action Chord Configuration}} ---- === Managing Actions === * **Reordering Actions:** To change the execution order of actions within a chord, click the **Up/Down** button, then click and drag the action to its new position. * **Table View:** Once saved, complex actions are cleanly summarized in the main chord table for quick reference: {{https://tgimages.s3.amazonaws.com/twiddler/wiki/Tuner_Actions_InTable.png|Actions Displayed in the Chord Table}}