Module: SDL2::Haptic::FEATURES

Includes:
EnumerableConstants
Included in:
SDL2::Haptic
Defined in:
lib/sdl2/haptic.rb

Overview

Different haptic features a device can have

Constant Summary collapse

CONSTANT =

Constant haptic effect

(1<<0)
SINE =

Periodic haptic effect that simulates sine waves.

(1<<1)
LEFTRIGHT =

Haptic effect for direct control over high/low frequency motors.

(1<<2)
TRIANGLE =

Peridodic haptic effect that simulates triangular waves.

(1<<3)
SAWTOOTHUP =

Periodic haptic effect that simulates saw tooth up waves.

(1<<4)
SAWTOOTHDOWN =

Periodic haptic effect that simulates saw tooth down waves.

(1<<5)
RAMP =

Ramp haptic effect

(1<<6)
SPRING =

Condition haptic effect that simulates a spring. Effect is based on axes position.

(1<<7)
DAMPER =

Condition haptic effect that simulates dampening. Effect is based on the axes velocity.

(1<<8)
INERTIA =

Condition haptic effect that simulates inertia. Effect is based on the axes acceleration.

(1<<9)
FRICTION =

Condition haptic effect that simulates friction. Effect is based on the axes movement.

(1<<10)
CUSTOM =

Custom effect is supported.

(1<<11)
GAIN =

Device supports setting the global gain.

(1<<12)
AUTOCENTER =

Device supports setting autocenter

(1<<13)
STATUS =

Device can be queried for effect status

(1<<14)
PAUSE =

Device can be paused

(1<<15)

Method Summary

Methods included from EnumerableConstants

included