A simple vJoy (virtual joystick) feeder program which converts mouse to joystick. Written in C++/Qt5. Requires windows because it uses vJoy.
vJoy is a virtual joystick driver for Windows (see http://vjoystick.sourceforge.net). This program reads data from the mouse and feeds it to vJoy, which simulated a joystick.
I wrote this so that I could play the 1998 win32 of Tie Fighter without a joystick. Side to side movement of the mouse is mapped to the joystick's X axis. Up/down movement of the mouse is mapped to the joystick's Y axis. Left click is joystick button 1, right click is joystick button 2.
- Compile from source or download the binary (you may need to install the Visual C++ Redistributable inlcluded in the binary)
- Install the vJoy virtual joystick driver (http://vjoystick.sourceforge.net)
- Run MouseToJoystick
- Double right-click to enable "joystick mode". Your mouse cursor will be centered and deviations from the center when you move the mouse taken as joystick inputs.
- Enjoy using your mouse as a joystick by playing a game (e.g. Tie Fighter).
- Double right-click again to disable "joystick mode" when you need your mouse again.
Note: You may want to minimize the MouseToJoystick window while playing a game since the GUI can sometimes "bleed" through the game (at least this seems to to be the case with Tie Fighter).