Giter Club home page Giter Club logo

ps2x_vjoy's Introduction

PS2X to vJoy (xJoy)

Allows you to connect a Playstation 2 controller to an Arduino, and use it for games in windows and linux.

Written solely for that purpose. [because who spends money on something when you can get it free!]

Introduction

Uses PS2 controller Arduino Library v1.8 by Shutter, Bill Porter, Eric Wetzel, Kurt Eckhardt.

Official vJoy SDK for Windows support

and

Linux vJoy port for Linux support

Installation

####Windows####

  • Compile main solution
  • Copy vJoyInterface.dll from the lib folder for the compiled exe
  • Done!

####Linux####

####Arduino####

  • Add PS2_pad_lib to libraries
  • Open PS2X/PS2X.ino
  • Connect the controller to the arduino
    • PS2_SEL is the Attention pin(6)
    • Motor power(3) not required, especially since there is no FFB implemented.
    • Data pin(1) will require a pull-up resistor
  • Change pin constants in the code if required
  • Upload to arduino

Usage

Windows

Just start the exe and you're ready to go! (or look below if it does not work)

The Windows version provides a few command line options:

  • -mode <mode name>

    • xjoy (default) - attempts to emulate an xbox360 controller with the buttons and axes.
    • xjoy2 - similar to xjoy but uses combined axes (Right Analog Y) in place of the two triggers, this is useful for some racing games such as Need for Speed which only has one combined axis for throttle and brake.
    • digital (not implemented) - all buttons digital
    • analog (not implemented) - all buttons pressure sensitive
  • -id <number 1...16>

    • vjoy target joystick number (default is 1)
  • -port <port name>

    • Serial port name for Arduino communication (default is COM4)

Example: vJoyDualShock2.exe -mode xjoy2 -id 2 -port COM5

Linux

  • Run vjoy arduino_serial_drive.py

There's options for serial port inside the python script but not much configuration other than that.

Contact

[email protected]

ps2x_vjoy's People

Contributors

kamilkz avatar

Watchers

 avatar  avatar

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.