This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

Draft

THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!

SDL_HapticCondition

A structure that contains a template for a condition effect.

Data Fields

<bgcolor="#EDEDED">Header

Uint16

type

one of the effects handled by this structure; see Remarks for details

<style="color: #808080;">SDL_HapticDirection

<style="color: #808080;">direction

<style="color: #808080;">direction of the effect - not used at the moment; see Remarks for details

<bgcolor="#EDEDED">Replay

Uint32

length

duration of the effect

Uint16

delay

delay before starting the effect

<bgcolor="#EDEDED">Trigger

Uint16

button

button that triggers the effect

Uint16

interval

how soon it can be triggered again after button

<bgcolor="#EDEDED">Condition

Uint16

right_sat

level when joystick is to the positive side; max 0xFFFF

Uint16

left_sat

level when joystick is to the negative side; max 0xFFFF

Sint16

right_coeff

how fast to increase the force towards the positive side

Sint16

left_coeff

how fast to increase the force towards the negative side

Uint16

deadband

size of the dead zone; max 0xFFFF: whole axis-range when 0-centered

Sint16

center

position of the dead zone

Remarks

type may be one of the following:

SDL_HAPTIC_SPRING

effect based on axis position

SDL_HAPTIC_DAMPER

effect based on axis velocity

SDL_HAPTIC_INERTIA

effect based on axis acceleration

SDL_HAPTIC_FRICTION

effect based on axis movement

direction is (currently) handled by condition internals instead of a direction member. The condition effect specific members have three parameters. The first refers to the X axis, the second refers to the Y axis and the third refers to the Z axis. The right terms refer to the positive side of the axis and the left terms refer to the negative side of the axis. Please refer to the SDL_HapticDirection diagram for which side is positive and which is negative.

SDL_HapticDirection
SDL_HapticNewEffect

CategoryStruct, CategoryForceFeedback, CategoryDraft


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.