Coder Social home page Coder Social logo

dmadison / arduinoxinput_teensy Goto Github PK

View Code? Open in Web Editor NEW
31.0 1.0 11.0 354 KB

Teensy boards package for the ArduinoXInput project

License: Other

C 92.58% C++ 7.42%
arduino arduino-ide arduino-boards usb xinput xinput-controller xbox xbox-controller xbox360 teensy

arduinoxinput_teensy's People

Contributors

dmadison avatar frob avatar gdsports avatar rune-scape avatar wheybags avatar zlittell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

arduinoxinput_teensy's Issues

Not working?

Hi, cannot get the ide to find the xinput boards. Have tried completely fresh installs of both latest arduino ide and legacy 1.8.19 both with teensyduino 1.59. I have followed read me to the letter as far as I'm aware but no joy xinput boards not showing

No longer compiles in PlatformIO for teensy 3.2

I ran into an issue where the XInput library just stopped compiling.
I had compiled it before with no issue.
The project compiles just fine if using USB_SERIAL mode, but wont as soon as I set it to USB_XINPUT.

I re-opened a test project I used to test the library that I know for a fact compiled previously.

I don't know what changed. I even used another computer that I had previously compiled this on.

The terminal shows this:
P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\libdeps\teensy31\XInput\src\XInput.cpp: In constructor 'XInputController::XInputController()':
P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\libdeps\teensy31\XInput\src\XInput.cpp:204:2: error: 'XInputUSB' has not been declared
XInputUSB::setRecvCallback(XInputLib_Receive_Callback);
^
P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\libdeps\teensy31\XInput\src\XInput.cpp: In member function 'boolean XInputController::connected()':
P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\libdeps\teensy31\XInput\src\XInput.cpp:435:9: error: 'XInputUSB' has not been declared
return XInputUSB::connected();
Compiling P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\build\teensy31\FrameworkArduino\HardwareSerial2.cpp.o
^
P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\libdeps\teensy31\XInput\src\XInput.cpp: In member function 'int XInputController::send()':
P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\libdeps\teensy31\XInput\src\XInput.cpp:446:9: error: 'XInputUSB' has not been declared
return XInputUSB::send(tx, sizeof(tx));
^
P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\libdeps\teensy31\XInput\src\XInput.cpp: In member function 'int XInputController::receive()':
P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\libdeps\teensy31\XInput\src\XInput.cpp:455:6: error: 'XInputUSB' has not been declared
if (XInputUSB::available() == 0) {
^
P:\Source Code\PlatformIO\Active\XInput Basic Test.pio\libdeps\teensy31\XInput\src\XInput.cpp:461:24: error: 'XInputUSB' has not been declared
const int bytesRecv = XInputUSB::recv(rx, sizeof(rx));
^

The project is just a simple single button thats always false.

platformio.ini.txt
main.cpp.txt

Cryptic Error when trying to use Xinput Library with Teensy 3.6

I get the following when I try and setup the Teensy 3.6, I have a 4.1 board here but I read that needs a different library or patch, so I'm hesitant to try it, if I have problems at this stage.

Error resolving FQBN: getting

Error compiling for board Teensy 3.6.

I'm using Arduino 1.8.19 and Teensyduino 1.56 (With the driver from https://github.com/dmadison/ArduinoXInput_Teensy/releases/tag/v1.0.12 ) Which reads as compatible...

My Goal is to use a home-made joystick with a MiiSter board, and I tried HID and it didn't recognize it as a Joystick, once it got into the game. While the Xbox controller I attached worked fine. So this is my alternative to try and see if I can get a driving game with analog inputs to work on things like Outrun and Spy Hunter.

XInput w/keyboard + mouse

Was just wondering if it is at all possible for the Teensy to act as a keyboard, mouse and xinput controller at the same time.

Teensy 4.1 Support

With the release of the Teensy 4.1 it is easy to hook up a ps4 controller to it by just adding a usb-A socket to the provided pins.
would you be so kind and add teensy 4.1 support for your modification?

Teensy LC support verified?

I have a Teensy LC board but arent seeing any xInput with LC options under Board. I can see that I can set USB type to XInput only? Am I not installing this correctly? I copied all zip file contents to the hardware library and overwrote the folders contents. I had already installed Teensyduino.

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.