Learn how to prototype using keyboard and gamepad as triggers.
keyboard and gamepad triggers

Adobe XD let’s you use keyboard shortcuts and gamepad triggers to simulate native desktop applications and prototype an enriched game experience or design. When wiring a prototype, you can select Keys/Gamepad from the Trigger drop down list and assign any key. You can use these triggers with Tap, Drag, Time, and Voice to prototype for different use cases like desktop apps, games, and presentations. 

You can then play back or record these animations in the preview window, web browser, or mobile applications and share them with your stakeholders for collaborative reviews. This helps you tell a better prototype story while adding a rich layer to the overall user experience.

Work with keyboard triggers

When prototyping certain desktop apps, accessibility or shortcuts or games, you need a keyboard to interact with the prototype. With this requirement in mind, Adobe XD introduces the ability to use a keyboard shortcut as a trigger to transition across screens in a prototype.

When wiring a prototype, select Keys & Gamepad. You can then press any key on the keyboard to assign it as a trigger to either an individual object or an entire artboard. This means that you can have multiple triggers from the same artboard.

keyboard trigger
Keyboard triggers

A. Trigger set to keyboard shortcut B. Keyboard shortcut key C. Action set to auto-animate D. Destination artboard 

You can also combine a key along with a modifier to define triggers using shortcuts like CMD S, CTRL R. Do note that you cannot use spacebar and other system level keys such as function, sleep, volume, and power. When you assign multiple triggers with the same shortcut on the same artboard, the last trigger is assigned and triggers during a preview.

Work with gamepad triggers

The best way to test a game prototype is to use the actual game controller hardware. Adobe XD allows you to interact with an XD prototype in a desktop player or a web browser using a connected gamepad controller and  create prototypes with gamepads as triggers to transition across screens. 

Connect an Xbox One or DualShock 4 controller via Bluetooth or USB, and select Keys/Gamepad in XD. You can then press any key on the connected gamepad to assign it as a trigger to the objects on the artboard.

Gamepad trigger
Gamepad triggers

A. Select trigger to gamepad B. Gamepad shortcut key C. Action set to auto-animate D. Destination artboard  

You can also add these triggers to the artboards or objects that allows you to have multiple gamepad triggers per artboard. However, ensure that you use the same controller to design and preview the prototype. So, for example, you can test a prototype with an Xbox controller on desktop or web if it was designed using an Xbox controller.

Mobile app and mobile web experience

XD supports keyboard gamepad support in the desktop preview app and web prototypes. If you are previewing the prototype on a mobile app or a mobile browser, you can tap to transition between artboards (since they would not have a keyboard or gamepad device attached).

Supported game controllers and browsers

Controllers

Mac (USB)

Mac (Bluetooth)

Win (USB)

Win (Bluetooth)

Xbox One

No

Yes

Yes

Yes

DualShock 4   

Yes

Yes

Yes

Yes

Xbox One Controller

Chrome (Mac)

Chrome (Windows)

Firefox (Mac)

Firefox (Windows)

IE

Edge

Safari

USB

Yes

Yes

Not recommended

Not recommended

No

Not recommended

No

Bluetooth

Yes

Yes

Not recommended

Not recommended

No

Not recommended

No

DualShock Controller

Chrome (Mac)

Chrome (Windows)

Firefox (Mac)

Firefox (Windows)

IE

Edge

Safari

USB

Yes

Yes

Not recommended

Not recommended

No

No

Not recommended

Bluetooth

Yes

Yes

Not recommended

Not recommended

No

No

Not recommended

Prototype using keyboard or gamepad keys

  1. In the Prototype mode, select all the artboards on the canvas to view the wires across the artboards.

  2. Drag a connector from a layer in the source artboard to the destination artboard. When you wire up the first element, the artboard of that element is set as the home artboard.

  3. In the Interaction panel that appears in Proerpty Inspector, set the following options:

    • Trigger: set the trigger type to Keys & Gamepad and select any key on the keyboard or a gamepad to assign a trigger except spacebar and other system level keys such as function, sleep, volume, and power.
    • Action: select the available options: Transition, Auto-Animate, Overlay, Speech Playback, or Previous Artboard.
    • Destination: set the destination artboard from the drop-down list.
    • Animation: select the options from the drop-down list.
  4. To preview the changes on desktop, select the Desktop Preview icon.

  5. To share your prototype with your stakeholders from the XD desktop app, click Share and choose Share for Review (for prototype) or Share for Development (for design specs). 

Dette produktet er lisensiert i henhold til Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Innlegg på Twitter™ og Facebook dekkes ikke av Creative Commons-vilkår.

Juridiske merknader   |   Regler for personvern på nettet