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.