Struct vjoy_wrapper::vjoy_extra::SDL2Helper[][src]

pub struct SDL2Helper(_);
Expand description

Provides utilities to handle and recognize vJoy devices inside SDL2.

Implementations

Returns a list of SDL2 devices which are recognized as vJoy devices, or SDL2VjoyError if it fails. The list is mapped as SDL2Vjoys.

Scales a SDL2 axis value to fit into a vJoy axis. The scaled value is rounded.

Scales a vJoy axis value to fit into a SDL2 axis. The scaled value is of f32 precision.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.