Git Product home page Git Product logo

Comments (10)

eswartz avatar eswartz commented on June 30, 2024 1

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.

eswartz avatar eswartz commented on June 30, 2024 1

I think this should be fixed satisfactorily in the 2017/03/05 release.

from emul.

eswartz avatar eswartz commented on June 30, 2024

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.

Deledrius avatar Deledrius commented on June 30, 2024

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.

eswartz avatar eswartz commented on June 30, 2024

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.

Deledrius avatar Deledrius commented on June 30, 2024

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.

Deledrius avatar Deledrius commented on June 30, 2024

Excellent. 😄 Incidentally, building that branch last night required me to manually add the log4j dependency to the v9t9-server module's .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.

eswartz avatar eswartz commented on June 30, 2024

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.

Deledrius avatar Deledrius commented on June 30, 2024

Terrific! It works fine with my gamepad. I hope to try it with the Retro-bit soon. Thanks for adding this!

👍

from emul.

Deledrius avatar Deledrius commented on June 30, 2024

Sorry, I forgot to update this after testing with the Retro-bit, but it works! Thanks again. 😃

from emul.

Related Issues (13)

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.