Git Product home page Git Product logo

mouse2joystick's Introduction

Mouse2Joystick

This program converts mouse input to button and joystick input on a virtual controller. In addition, it can hide and lock the cursor over a specified target window. This allows the mouse to be used as input in programs that do not allow it.

This program requires ViGEmBus, which can be found here:

https://vigem.org/projects/ViGEm/How-to-Install/

Usage

  • Download the latest release
  • Run Mouse2Joystick.exe
  • Tweak the settings to your liking

You can now use the virtual controller in any running program. If you want to hide and lock the cursor, set the target process name to that of the desired window. The process name can be found in the "Processes" tab in Task Manager by right-clicking the column names and checking "Process name".

A setup guide for Cemu can be found in this repository's wiki.

Building

Mouse2Joystick uses CMake, and can be built like so:

> git clone --recurse-submodules https://github.com/memethyl/Mouse2Joystick
> mkdir M2JBuild
> cd M2JBuild
> cmake ../Mouse2Joystick
> cmake --build .

FAQ

Which platforms are supported?

Mouse2Joystick is Windows-only at the moment. Support for other platforms is planned.

When I click a key bind in the target window to change it, it immediately binds the key and moves to the next bind. How do I fix this?

Repeat the following for all binds:

  1. Crank the input delay all the way up
  2. Click the bind
  3. Hold the desired button down until it binds

Key binds in the target window keep being bound to the joystick. How do I fix this?

Enable "Lock X Axis" and "Lock Y Axis" while binding the keys. This will prevent the virtual joystick from moving.

Libraries

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.