Richard Smith
Richard Smith
Here's a program that uses method 1: ``` import com.badlogic.gdx.controllers.Controller; import uk.co.electronstudio.sdl2gdx.SDL2Controller; import uk.co.electronstudio.sdl2gdx.SDL2ControllerManager; public class SDL2Test { public static void main(String[] arg){ SDL2ControllerManager controllerManager = new SDL2ControllerManager(); for (Controller...
Using method 2: ``` import org.libsdl.SDL; import org.libsdl.SDL_Joystick; public class SDL2Test { public static void main(String[] arg){ SDL.SDL_Init( SDL.SDL_INIT_JOYSTICK ); for(int i=0; i< SDL.SDL_NumJoysticks(); i++) { SDL_Joystick j = SDL_Joystick.JoystickOpen(i);...
SDL doesn't get battery voltage. I would be very surprised if XInput or DirectInput did either. You'd probably be looking at writing a device-specific USB driver.
xinput has https://docs.microsoft.com/en-us/windows/win32/api/xinput/ns-xinput-xinput_battery_information but that's the same data that sdl2gdx exposes.
It’s not you, I have reproduced this. Something is messed up with the Linux build. I will investigate.
suggest trying with latest release
Raylib changed so this function returns a struct rather than array of strings. Assuming it doesn't do it anywhere else, closing this.
Looks cool. The `raylib` package has a dependency on the `inflection` package, so when I try to use any of the pyray functions I get ``` ModuleNotFoundError: No module named...
I added inflection to the PEP 723 block but it does not seem to make any difference. Here is the whole project so you can see what I'm doing wrong:...
Thanks, that is great. I put up some examples here: https://electronstudio.github.io/raylib-python-cffi-pygbag-examples I'm not sure the platform.window.window_resize() fix is working, some of them seem to have wrong size