汎用コントローラ/その他のジョイスティック周辺機器からステアリングホイールをエミュレートする

汎用コントローラ/その他のジョイスティック周辺機器からステアリングホイールをエミュレートする

そこで私は、質素な(モーションプラスではない)WiiMote をかき集めて、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

これは基本的に、Wiimote の加速度値を取得して、それを (仮想コントローラの) 左スティックの x 軸にマッピングすることで、Wiimote をステアリング ホイールにします。これはすべて良いことですが、一部のゲームでは、コントローラ入力のみが許可され、キーボード入力は許可されません。そこで、疑問に思ったのは、完全に機能する (仮想なので、違いはないはずです) コントローラからステアリング ホイールをエミュレートするソフトウェアまたは方法はあるのでしょうか?

関連情報