-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[F-Req] Controller Emulation in lue of Direct Controller binding #6400
Comments
SDL is a beast and would be rather cumbersome to integrate, as it supports so, so much more than just controllers. The problem with exposing an emulated controller is that each mod chooses its own approach to talk to it. Some older mods use the LWJGL2 built-in Controller oir the jinput library, some use the GLFW controller, some use SDL. Providing and maintaining an impelementation for all of these would take far too much, especially considering the much more severe issues that the launcher has at the moment. |
The idea behind the "emulated" controller was that a mod would have to add their own support for Pojav's implementation, wether it be LWJGL2, GLFW, or SDL, the basic idea remains the same. Effectively "opening the door" for modders to take advantage of Pojav implements a way for the user to choose to use the emulated input, Doesnt even need analog support to be honest, I would gladly take 4directional movement on my phone if it meant I could actually use a mod that was built from the ground up to redesign the entire game to use a controller supported UI (like how legacy4j rewrites damn near every vanilla menu to support the same style and controls as old Legacy/Console edition of minecraft) |
Convincing anyone to actually do that is pretty hard, though. If you want to try, sure. I will implement a driver if I can negotiate a common spec for this kinda stuff with someone |
I, Controlify dev, would happily and in a flash implement support for Pojav if this was possible. Could you not have a virtual XInput Xbox 360 driver like many do? Is x-input windows only? Surely there's already a standard you can virtualize? |
We all need controlify in pojav The menu speed is pure garbage and the game sensitivity it even worse |
Checked some stuff again, main issue with controlify specifically is that when something fails when loading SDL, it will crash the game. Other than that there should be no blockers on our side, we can just implement a GLFW gamepad |
Kinda true? Unless it's pojav specific.
If legacy4j and controlify are next to eachother it will hang when loading SDL Controller libs. (As in, game will keep running but it never leaves the loading bar screen and the last thing to ever show in logs is the error from legacy4j that the library is already loaded)
So I think the SDL crashes are implementation specific with the error handling
Sent from Proton Mail Android
…-------- Original Message --------
On 12/26/24 3:25 AM, Maksim Belov wrote:
> I, Controlify dev, would happily and in a flash implement support for Pojav if this was possible.
>
> Could you not have a virtual XInput Xbox 360 driver like many do? Is x-input windows only? Surely there's already a standard you can virtualize?
Checked some stuff again, main issue with controlify specifically is that when something fails when loading SDL, it will crash the game. Other than that there should be no blockers on our side, we can just implement a GLFW gamepad
—
Reply to this email directly, [view it on GitHub](#6400 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACPQOXQ3MB3YTEVEQYNBMPD2HPRRNAVCNFSM6AAAAABUA2DQZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRSGQ4TSMJSGQ).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
It's pojav specific, controlify won't start properly because JNA has failed to initialize while loading the narrator
|
Is this request related to a bug?
Not to my knowledge,
Describe the request.
I noticed that the gamepad config screen supports the DPAD mappings, which is what lead me to this idea
Since from what I have gathered directly binding a controller to the game is not feasible, why not create a middleman handler simular to how the launcher is now?
have an option to instead of Remap say BUTTON_A to KEY_SPACE, a toggle that is just "emulate mapping", where pojav exposes a emulated controller to the game. Which would allow controller support mods (such as controllify) to add support for pojav launcher's controller implementation.
Anything else?
Controlify uses a forked Native Library for interacting with controllers, and even has dedicated steamdeck controller support, making it by far one of the better controller support mods on the platforms (cf/mr), so much so that a semi-popular mod/modpack, legacy4j/Re-Console, has a option to use Xander's SDL library instead of the default one. Because it tends to work better.
Exposing a emulated controller, as stated above, would allow Xander and/or other modders to build a library/mod meant for interacting with pojav's emu-controller, which would allow for mod/modpacks like the one stated, to work on the go with controllers like the Backbone,
The text was updated successfully, but these errors were encountered: