Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? @16Actually it was @12 who told me about it, so I can't take any credit.It's good stuff though. URL: https://forum.audiogames.net/post/603573/#p603573 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? @15, oh, I didn't know that package even existed. Thanks for that tip! URL: https://forum.audiogames.net/post/603550/#p603550 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? @13No worries mate, you just pip install pysdl2-dll and all is fixed. Got it working beautifully. Thanks all for your help and suggestions. URL: https://forum.audiogames.net/post/603446/#p603446 -- Audiogames-reflector mailing
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? Would it be correct to assume that the majority of features of PySDL2 are aimed at ECS? See this for a possible explanation for this assumption URL: https://forum.audiogames.net/post/603425/#p603425 -- Audiogames-reflector
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? Agreed with 12. Use PySDL2. (Note: I've had trouble using PySDL2 on Windows. In particular, I had to modify the source code to get it to find sdl2.dll... Its search path is kinda weird, though I don't remember it off the top of my
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? Agreed with 12. Use PySDL2. (Note: I've had trouble using PySDL2 on Windows. In particular, I had to modify the source code to get it to find sdl2.dll... Its search path is kinda weird, though I don't remember it off the top of my
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? Agreed with 12. Use PySDL. (Note: I've had trouble using PySDL on Windows. In particular, I had to modify the source code to get it to find sdl2.dll... Its search path is kinda weird, though I don't remember it off the top of my
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? You could try PySDL2, which is a binding to SDL in python. It should support your needs. URL: https://forum.audiogames.net/post/602984/#p602984 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? @10Wow, OK, that's pretty cool.Does that mean force feedback works from Python, it's just not supported natively by either Pyglet or Pygame? URL: https://forum.audiogames.net/post/602977/#p602977 -- Audiogames-reflector
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? SDL2's joystick support is wonderful. It needs a set of joystick button mappings to function, though. Such a mapping database is available here. To load it, use SDL_GameControllerAddMapping, SDL_GameControllerAddMappingsFromFile
Re: Python: Usage for Joysticks and External Controllers?
2020-12-29
Thread
AudioGames . net Forum — Developers room : GrannyCheeseWheel via Audiogames-reflector
Re: Python: Usage for Joysticks and External Controllers? Well maybe digging into SDL2 can fix that, I don't know. I do know that if I play a game with a controller, and it doesn't have rumble support, I'd just as soon switch back to keyboard unless there's a really good reason knot
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? @5Neither does Pyglet, sadly. URL: https://forum.audiogames.net/post/602838/#p602838 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? HEY, just in case you are still interested, I added joystick support for pygame aplications on the past.Basically, you initialize an instance of pygame.joystick.joystick(id), and check the state of a button by myjoystick.get_button
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? HEY, just in case you are still interested, I added joystick support for pygame aplications on the past.Basically, you initialize an instance of pygame.joystick.joystick(id), and check the state of a button by myjoystick.get_button
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? Yeah, I've never liked Piglet. Optimally, I'd have rumble support as well. URL: https://forum.audiogames.net/post/602777/#p602777 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https
Re: Python: Usage for Joysticks and External Controllers?
2020-12-28
Thread
AudioGames . net Forum — Developers room : GrannyCheeseWheel via Audiogames-reflector
Re: Python: Usage for Joysticks and External Controllers? Pygame's controller support doesn't give you rumble support though. I do not really like pyglet all that much. URL: https://forum.audiogames.net/post/602773/#p602773 -- Audiogames-reflector mailing list Audiogames-reflector
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? Pyglet has controller support too.Shameless plug here: Earwax lets you specify button numbers and hat directions when you define actions, along with keyboard and mouse buttons. URL: https://forum.audiogames.net/post/602757/#p602757
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? @2 is correct. Look up SDL2, though, not sure if it changed between versions. URL: https://forum.audiogames.net/post/602746/#p602746 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https
Re: Python: Usage for Joysticks and External Controllers?
Re: Python: Usage for Joysticks and External Controllers? Just look up SDL2 and joysticks/gamepads in general, that will explain everything you need to know, since pygame is just a wrapper for SDL/SDL2. URL: https://forum.audiogames.net/post/602732/#p602732 -- Audiogames-reflector
Python: Usage for Joysticks and External Controllers?
Python: Usage for Joysticks and External Controllers? Hello,I was curious how this might be done, so I looked up how to use joysticks with Pygame. What I was given was generally helpful, except it doesn't quite explain how to check what buttons or directions are being pressed. Any