Python Forum
Basically a Python Tetris game [pygame] rather keyboard arrows can be controlled with
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basically a Python Tetris game [pygame] rather keyboard arrows can be controlled with
#1
Basically a Python Tetris game [pygame] rather keyboard arrows can be controlled with joystick device...?

https://www.pygame.org/docs/ref/joystick.html

the Docs here ^^ simple joysticks and flight simulators joysticks are the same... operant commands in this Docs?
Reply
#2
Do you have a question?
Recommended Tutorials:
Reply
#3
I HAVE MODIFIED a Python Tetris game [pygame] controlled by keyboard arrows ... is it controllable with joystick device... or needed use joystick library of pygame?

https://www.pygame.org/docs/ref/joystick.html

the Docs here ^^ is for simple joysticks including flight simulators joysticks the same...?

I just wanted TEST python games With Joystick --- but I do not have any... and needed to buy one ... what joystick to buy... any idea for Python3/Pygame games????
Reply
#4
You would need pygame for joystick control. I am not aware of any joystick that does not work with pygame.
Recommended Tutorials:
Reply
#5
https://www.pygame.org/docs/ref/joystick.html

the Docs here ^^ for the joystick is for simple joysticks including/(as well as) flight simulators joysticks the same...?

Should work for most Joystick hardware --- that is for PC/Mac/Linux...? Not Xbox, nor Playstation but must be for PC/Computer...correct?
Reply
#6
It should work with any device attached to your computer. Including xbox controllers.
Reply
#7
A corded USB xbox 360 controller is probably the most common controller. And yes it does work with that as that is the controller i use.
Recommended Tutorials:
Reply
#8
can you send a purchase link on amazon.co.uk or ebay.co.uk of

"corded USB xbox 360 controller"

is it this
https://www.ebay.co.uk/p/Wired-Xbox-360-...1055888841

???
Reply
#9
As long as it's usb, yes. I like xbox one controllers, because they're bluetooth and I don't like cables, but they both work fine.
Reply
#10
The one you linked looks similar, but is off brand. The one i have has the only difference of a breakaway cable....so if you pull hard enough the cable separates instead of breaking your USB port.
Like this but it is built in to the controller cord of the one i have. Not sure if you can even buy these anymore as i have had been using this since the xbox 360 has been the newest console.

The xbox one controller also has a USB charging cable. I havent used it yet for computer use, but i would assume that you could just use that to connect the controller to sync it.

You can use any USB controller. But i have found over the years the off brand ones suck and break easily or have driver issues in the future. Its best to just get a name brand one as you only have to buy it once and your done.

This is mine except black. If i needed a second controller, or broke mine... This would be the one i would order as it is 1) name brand and 2) listed as never used (new). I would not buy an off brandm as i have done that before and ended up buying numerous ones every year to replace them. Ive owned this one for probably ~10 years and it has endured drops, pulls, spills, and works as if it is brand new.
https://www.ebay.com/itm/Microsoft-Xbox-...0005.m1851
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] Pygame display problem video game Paul_Maillet 1 610 Feb-20-2024, 07:50 PM
Last Post: Bronjer
  Isometric game pygame Tiled howardberger 1 476 Jan-31-2024, 10:01 PM
Last Post: deanhystad
  Tetris inteligence DanTDRG 5 1,509 Oct-05-2022, 08:30 AM
Last Post: DanTDRG
  From python game in terminal to a website game using bottle Njanez 0 3,831 Aug-13-2021, 01:11 PM
Last Post: Njanez
  pygame error in my clicker game CrazyMakes 2 2,511 Apr-19-2020, 03:04 AM
Last Post: Windspar
  Handling multiple keyboard entries in Pygame mrcrease 2 4,284 Dec-13-2019, 01:12 AM
Last Post: Windspar
  Tetris 3 abscorpy 3 2,948 Dec-10-2019, 06:36 PM
Last Post: nilamo
  Tetris 2 abscorpy 1 1,807 Dec-05-2019, 12:03 AM
Last Post: Windspar
  Tetris abscorpy 1 2,448 Nov-05-2019, 01:57 AM
Last Post: SheeppOSU
  Pygame 2d game maximk301 1 2,829 Apr-08-2019, 11:22 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020