Comments (10)
Yes, I was able to work around it initially by hacking the way buttons/axes are detected. But the default detection leaves a lot to be desired, so I'm beefing it up with user-editable configurations. Working on that now.
from emul.
I think this should be fixed satisfactorily in the 2017/03/05 release.
from emul.
Sorry about the trouble. As far as controllers go, I've only tested with USB gamepad controllers so far (XBox, PS3, Logitech T310), which map analog-style inputs to "hat switch left", "hat switch right", or "axis left", "axis right", etc. I'm not sure if all joysticks act the way you describe or just yours.
And unfortunately the retro-bit site is down at the moment, so I can't order one of those for myself.
Are you willing to do some testing? There's a way to query the lwjgl library directly for how it sees the joystick, which may help me see what's wrong.
If you download lwjgl_test.jar and put it alongside the other extracted v9t9j libraries (note the path printed on startup of v9t9.sh, something like /var/folders/.....longRandomChars/T/.v9t9j/exec/libs
), then try:
java -cp .:lwjgl.jar:lwjgl_test.jar:jinput.jar org.lwjgl.test.input.TestControllers
it will put up a UI showing the ways various joystick/controller inputs map to various directions. Any axis-like ones (X, Y, Z, RZ, POV X, POV Y) are the ones to note. Are any of those stuck? They should rest at 0 and range from -1.0 to 1.0.
from emul.
Ah, that's a good guess. I know I had tried it out with a gamepad myself and it worked fine. Unfortunately I don't have access to the equipment in question at the moment (I left it with the person for whom it was purchased) but I will hopefully be able to try out your test next week. I will report back with the results then. Thanks for your help!
from emul.
I acquired one of these joysticks and see that it has an... interesting... configuration. (lwjgl thinks this thing exposes four X axes, the first of which is stuck at -0.99, the next two at zero, and the fourth actually representing the X of the stick). Enchanting.
from emul.
Wow, thanks for looking into it! I'm sorry I haven't yet had access to test it for myself. What a strange configuration they chose for the device... it's no wonder the emulator was confused by it.
Does controller-fixes-13 fix the issue for you? I didn't have any difficulty building the project, so I'll give this a try against ours soon (I hope).
from emul.
Excellent. .classpath
and build.xml
. I see you've done considerably more work on it this morning, so you may have already caught it, but just in case...
from emul.
Good, thanks for catching that. I would have seen it eventually -- still in Eclipse at the moment.
The UI is mostly done, but still has a flaw in that only one combination of controllers is remembered at a time, so one's painstakingly established settings are lost if you run with a different setup. I'll work on that. But as for now, if you want to try with only that joystick and disable that bogus X axis, have at it.
from emul.
Terrific! It works fine with my gamepad. I hope to try it with the Retro-bit soon. Thanks for adding this!
from emul.
Sorry, I forgot to update this after testing with the Retro-bit, but it works! Thanks again.
from emul.
Related Issues (13)
- Wrong colors in screenshots HOT 1
- Validate odd PC behavior in Bigfoot
- Improve UI if DSR ROMs are not found
- Hide Emulator Buttons HOT 2
- Incompatible JNA native library on Ubuntu HOT 23
- Video updating is not synchronized with 9900 HOT 4
- Keyboard buffering interferes with games HOT 3
- When modules have the same name, only first one is launched HOT 2
- Keypad joystick mapping is broken HOT 2
- Modules UI is broken on Windows
- P-Code GROMs cannot be loaded HOT 2
- VDP interrupt behavior not working in some modules HOT 1
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 emul.