Toast Engine
Loading...
Searching...
No Matches
event::PlayHapticDirect Struct Reference

Requests a haptic play on a controller without routing through a PlayerController. More...

#include <input_events.hpp>

Inheritance diagram for event::PlayHapticDirect:
Collaboration diagram for event::PlayHapticDirect:

Public Member Functions

 PlayHapticDirect (uint32_t controller, assets::Handle< assets::Haptic > haptic)

Public Attributes

uint32_t controller
assets::Handle< assets::Haptic > haptic
Public Attributes inherited from event::Event< PlayHapticDirect >
friend T

Additional Inherited Members

Public Types inherited from event::Event< PlayHapticDirect >
using callback_t
 callbacks that return 'true' are consumed and do not propogate
using iterator_t

Detailed Description

Requests a haptic play on a controller without routing through a PlayerController.

Used by the editor's haptic test button

Constructor & Destructor Documentation

◆ PlayHapticDirect()

event::PlayHapticDirect::PlayHapticDirect ( uint32_t controller,
assets::Handle< assets::Haptic > haptic )
inline
Parameters
controllerSDL_JoystickID of the target controller; 0 = first/active gamepad

The documentation for this struct was generated from the following file: