MouseToJoystick | simple vJoy | Game Engine library
kandi X-RAY | MouseToJoystick Summary
kandi X-RAY | MouseToJoystick Summary
A simple vJoy (virtual joystick) feeder program which converts mouse to joystick. Written in C#. Runs only on Windows. vJoy is a virtual joystick driver for Windows (see This program reads data from the mouse and feeds it to vJoy, which simulates a joystick. I wrote this so that I could play the 1998 win32 version 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. How to use it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MouseToJoystick
MouseToJoystick Key Features
MouseToJoystick Examples and Code Snippets
Community Discussions
Trending Discussions on MouseToJoystick
QUESTION
I've recently bought Tie-Fighter Special Edition on Steam but have found that it requires a joystick to play. I have been looking for a solution to this, and have found this code which supposedly converts mouse input to joystick input. However, I've been having trouble getting it to work.
I do not have any experience with C++ or Qt Creator, meaning that I really do not know what I need to do to get this to work. I suspect that it may have been written using an older version of Qt.
When I try to compile the code in Visual Studio, I get several errors saying that it cannot open any of the source files.
...ANSWER
Answered 2019-Nov-28 at 02:34This has a version already compiled here
QUESTION
It was pointed out that I should be using MS VC++ rather than MinGW, this seems to result in a different issue for me:
2 Unresolved External Symbols
- __imp_SetWindowsHookExW
- __imp_UnhookWindowsHookEx
As seen here:
Each of these trace into WinUser.h here:
Should I make and entirely new post for this? - or revise the current post?
Original Post :I'm trying to re-build a program which maps Mouse input to a "Virtual Joy Stick" using libraries from vJoy
The original project can be found here: MouseToJoystick
I have not changed anything in the program, and I am attempting to compile it within QT Creator, using QT 5.10.0 - I am not certain if I have the "Build Settings" setup correctly.
Here is the current list of compile Warnings and Errors:
As far as I can tell, each of the "undefined references" listed is a function which can be traced into "vJoyInterface.h" which is included in the file "MainWindow.cpp" where the "undefined references" take place.
MainWindow.cpp #includes (image)
And here are the "prototypes" for the function said to be "undefined" in the "vJoyInterface.h" file:
So, at the very least the "prototypes" for the functions exist - although the functions may still be undefined - other answers I've seen say that the project need to somehow include/link the appropriate library that contains the definitions for the functions.
The only other files related to vJoy are in the "vJoyLib/64" and "vJoyLib/32" folder. Which both contain these files:
This library is referenced in the "MouseToJoystick.pro" file, as seen here:
My assumption is that the vJoy functions are defined somewhere in the "vJoyInterface.lib" but I have no idea, and I don't know how to check.
TL;DRQT Creator says there are "undefined references" but I know the prototypes have been included, and I assume that they are defined in a library linked to the project as seen in this image:
Qt Project Linking vJoyInterface (image)
But I honestly have no idea where the functions are actually defined, or if the library is being linked correctly.
Questions- How can I figure out where the functions are actually being defined OR how can I properly include the library/definitions in my project?
- Why do each of the functions have '_imp__' added on the beginning in the error message?
Qt Creator - Project Build Settings - Qt 5.10.0 MinGW 32bit
...ANSWER
Answered 2017-Dec-27 at 01:28@AlexanderVX provided this answer in a comment to my question
After switching from MinGW to MS VC++ in the project compile settings, I added 1 line of code to my "MouseToJoystick.pro" file.
Here is the new line of code:
Project File code (image)
After that I did "Clean All", "Run Qmake", and "Rebuild All" as seen in this image:
Steps (image)
The program compile and runs perfectly, thank you @AlexanderVX
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MouseToJoystick
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page