MouseToJoystick | simple vJoy | Game Engine library

 by   raptorswing C# Version: 2.0-beta2 License: MIT

kandi X-RAY | MouseToJoystick Summary

kandi X-RAY | MouseToJoystick Summary

MouseToJoystick is a C# library typically used in Gaming, Game Engine applications. MouseToJoystick has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

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

            kandi-support Support

              MouseToJoystick has a low active ecosystem.
              It has 39 star(s) with 14 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 9 open issues and 10 have been closed. On average issues are closed in 505 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of MouseToJoystick is 2.0-beta2

            kandi-Quality Quality

              MouseToJoystick has 0 bugs and 0 code smells.

            kandi-Security Security

              MouseToJoystick has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              MouseToJoystick code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              MouseToJoystick is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              MouseToJoystick releases are available to install and integrate.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MouseToJoystick
            Get all kandi verified functions for this library.

            MouseToJoystick Key Features

            No Key Features are available at this moment for MouseToJoystick.

            MouseToJoystick Examples and Code Snippets

            No Code Snippets are available at this moment for MouseToJoystick.

            Community Discussions

            QUESTION

            How can I get this mouse to joystick program to work?
            Asked 2019-Nov-28 at 02:34

            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:34

            QUESTION

            Multiple Undefined References - Qt Creator - vJoy C++
            Asked 2017-Dec-27 at 01:28
            Edit

            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

            1. __imp_SetWindowsHookExW
            2. __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:

            vJoyInterface Header (image)

            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;DR

            QT 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
            1. How can I figure out where the functions are actually being defined OR how can I properly include the library/definitions in my project?
            2. Why do each of the functions have '_imp__' added on the beginning in the error message?
            Additional Information

            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

            Source https://stackoverflow.com/questions/47984766

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install MouseToJoystick

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/raptorswing/MouseToJoystick.git

          • CLI

            gh repo clone raptorswing/MouseToJoystick

          • sshUrl

            git@github.com:raptorswing/MouseToJoystick.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Game Engine Libraries

            godot

            by godotengine

            phaser

            by photonstorm

            libgdx

            by libgdx

            aseprite

            by aseprite

            Babylon.js

            by BabylonJS

            Try Top Libraries by raptorswing

            MapGraphics

            by raptorswingC++

            Qt-Socks-Server

            by raptorswingC++

            Genetic-Planner

            by raptorswingC++

            Port-Scan-Detector

            by raptorswingC++

            GPX

            by raptorswingC++