
Así que armé un WiiMote humilde (sin movimiento adicional) y escribí un guión confiable en Freepie:
# In different places of earth this number will vary, however it is estimated to be 9.81.
accelOverride = 5.25
# Log the acceleration value - when placed above a flat surface it should log as a number below 0.8
diagnostics.watch(wiimote[0].acceleration.x-accelOverride)
diagnostics.watch(wiimote[0].acceleration.y-accelOverride)
# Define a variable that should help manipulating the Wiimote's X/Y-axis acceleration
# Note: LR is Left/Right and UD is Up/Down
accelLR = wiimote[0].acceleration.y-accelOverride
# Establish a small deadzone that should help with the inconsistency of the acceleration of Earth
if accelLR < 0.7 and accelLR > -0.7:
accelLR = 0
# Now log our accel values - the post-processed acceleration value
diagnostics.watch(accelLR)
# Now calculate everything
angleLR = filters.ensureMapRange((accelLR), 8, -8, vJoy[0].axisMax*-1, vJoy[0].axisMax)
vJoy[0].x = angleLR
lo que básicamente convierte al Wiimote en un volante al tomar sus valores de aceleración y asignarlos al eje x del joystick izquierdo (del controlador virtual). Todo esto es bueno, sin embargo, algunos juegos solo te permiten tener una entrada de controlador y ninguna entrada de teclado al mismo tiempo. Entonces me preguntaba: ¿Existe algún software o forma de emular un volante desde un controlador completamente funcional (virtual, no debería marcar la diferencia)?