squeeek
Well-known member
Hello!
I am (nearly) a new Teensy 3.1 / LC user. I have several projects in my sleeves, but the current one concerns a Playstation gamepad (including the special "home" button). I know it has already been done using a Teensy ++ 2.0, see here but I would like to do that using Teensyduino so I'll have a bit of work on that first.
For those who are interested but do not want to go into details yet, let's just say that a PS3 can read a standard USB gamepad fairly well, except for the "home" button, which needs some special data exchange to work properly. I guess that any other USB virtual device should be removed from the firmware too (i.e. mouse, keyboard, serial).
So, this is the first step : being able to create a 100% compatible PS3 gamepad that could be programmed with Teensyduino.
The next step is a bit harder, and I don't even know if it is possible or not, so maybe you can help me sort this out : what I would like is that, depending on the state of a digital input at startup, the Teensy behaves either as a PS3 gamepad (when plugged to a PS3), or as a gamepad+keyboard+mouse+serial (whenplugged to a PC).
The aim of my project is to have a reconfigurable arcade gamepad (I already have the hardware, I "just" need to change the board, and program it, of course, which is the main challenge) : several configurations can be stored in EEPROM (e.g. buttons 1-2-3-4 and 5-6-7-8 as gamepad, or 1-2-3-4 and then the same with autofire, or sending keyboard key presses or mouse moves instead when not in PS3 mode...). If you know X-Padder or joy2key, it's a bit the same, except it is embedded in the controller. I already started some of this with UnoJoy and LeoJoy, but I would prefer to switch to Teensy for several reasons (including keyboard type choice, and the extra CPU power and EEPROM of course).
Next step for me : wait for the Teensy LC to be available at Snootlab, and buy one along with a Teensy 3.1
So... ahem... any clue about :
1) where to start to get a "clean" PS3 gamepad available for use in Teensyduino? I would tend to try and modify the usb.c in the cores/usb_hid folder I guess.
2) if the USB behaviour depending on a digital input at startup is possible at all?
Thank you for your help!
Squeeek
I am (nearly) a new Teensy 3.1 / LC user. I have several projects in my sleeves, but the current one concerns a Playstation gamepad (including the special "home" button). I know it has already been done using a Teensy ++ 2.0, see here but I would like to do that using Teensyduino so I'll have a bit of work on that first.
For those who are interested but do not want to go into details yet, let's just say that a PS3 can read a standard USB gamepad fairly well, except for the "home" button, which needs some special data exchange to work properly. I guess that any other USB virtual device should be removed from the firmware too (i.e. mouse, keyboard, serial).
So, this is the first step : being able to create a 100% compatible PS3 gamepad that could be programmed with Teensyduino.
The next step is a bit harder, and I don't even know if it is possible or not, so maybe you can help me sort this out : what I would like is that, depending on the state of a digital input at startup, the Teensy behaves either as a PS3 gamepad (when plugged to a PS3), or as a gamepad+keyboard+mouse+serial (whenplugged to a PC).
The aim of my project is to have a reconfigurable arcade gamepad (I already have the hardware, I "just" need to change the board, and program it, of course, which is the main challenge) : several configurations can be stored in EEPROM (e.g. buttons 1-2-3-4 and 5-6-7-8 as gamepad, or 1-2-3-4 and then the same with autofire, or sending keyboard key presses or mouse moves instead when not in PS3 mode...). If you know X-Padder or joy2key, it's a bit the same, except it is embedded in the controller. I already started some of this with UnoJoy and LeoJoy, but I would prefer to switch to Teensy for several reasons (including keyboard type choice, and the extra CPU power and EEPROM of course).
Next step for me : wait for the Teensy LC to be available at Snootlab, and buy one along with a Teensy 3.1
So... ahem... any clue about :
1) where to start to get a "clean" PS3 gamepad available for use in Teensyduino? I would tend to try and modify the usb.c in the cores/usb_hid folder I guess.
2) if the USB behaviour depending on a digital input at startup is possible at all?
Thank you for your help!
Squeeek