Comments (4)
Yeah, this is a known issue, it's even noted in the function header. That function is a carryover from the PS2X library, but it's undocumented and based on data reported by controllers that nobody really knows how to interpret.
I think I will just remove that function in the devel
branch, sooner or later.
There's another similar function that is much more reliable, as it will report what protocol the library is actually using to talk to the controller. Please see getProtocol().
from psxnewlib.
@SukkoPera I've got an original guitar to try.
It sends DPAD LEFT as always pressed and reports as dualshock.
Holding the dpad left was also a trick to use a dualshock to play the games on ps2. Hold it when booting the game so it detects it as a guitar.
I will do more tests and see if there's any other way to identify it. But checking for the dapd state might be a good fallback.
from psxnewlib.
So I guess this function really has to go! :)
from psxnewlib.
Noooooooo. Please don't kill it :)
Function is really useful to detect the presence of a jogcon. We can't rely only on the reported protocol.
Jogcon reports as digital protocol and this function can identify if it's a jogcon connected in digital mode.
Some findings on the guitar hero device. Can be useful if anyone need to identify if a guitar deice is connected:
- Dpad left is always ON.
- It boots up as DS1 in digital mode. (same behavior as a DS1)
- It supports the commands to enable Analog Sticks and Buttons. After those commands, it will report as a DS1 with DS2 protocol. (not the same behavior as a DS1)
- Guitar needs a longer polling interval. I've got it working with at least 8ms interval.
This was tested with a wireless guitar and the original Kramer Striker Wireless Receiver.
from psxnewlib.
Related Issues (20)
- Namco Volume Controller SLPH-00015 and 3.3V Arduinos support HOT 16
- Hardware SPI on Leonardo HOT 16
- Trying for most part of 2 days to get this working HOT 5
- Adding support for the Jogcon's motor HOT 13
- Wireless Controller keeps disconneting HOT 8
- Multitap (devel branch) HOT 6
- Support for more boards HOT 16
- Generic controller not working HOT 3
- enableAnalogSticks not working HOT 5
- Library cannot compile for RP2040 devices HOT 3
- SCPH-1150 rumble HOT 4
- Seeking compatibility with Steering Wheel Madcatz Dual Force HOT 7
- Controller features detection HOT 1
- Agetec Bass Landing Fishing Controller SLUH-00063
- Multitap buttonPressed HOT 2
- Didn't mark `getRightAnalog` as `const` HOT 3
- Joystick_ does note name a type; did you mean 'Joystick'? HOT 3
- Guncon support HOT 47
- PS1 Densha de Go controller one-handle version TCPP-20001 support HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psxnewlib.