Bottom Page

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?
Quote
#2
Do you have a question?
Quote
#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????
Quote
#4
You would need pygame for joystick control. I am not aware of any joystick that does not work with pygame.
Quote
#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?
Quote
#6
It should work with any device attached to your computer. Including xbox controllers.
metulburr likes this post
Quote
#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.
Quote
#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

???
Quote
#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.
metulburr likes this post
Quote
#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
nilamo likes this post
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Pygame 2d game maximk301 1 348 Apr-08-2019, 11:22 AM
Last Post: metulburr
  Tetris - AttributeError: 'list' object has no attribute 'y' abscorpy 6 943 Feb-28-2019, 05:20 PM
Last Post: Larz60+
  simple pygame game kinglarry0327 0 616 Jan-06-2019, 06:18 PM
Last Post: kinglarry0327
  Pygame vs TKinter for a Quiz Game? SteampunkMaverick12 1 1,162 May-21-2018, 05:31 PM
Last Post: j.crater
  [pyGame] How do i change text with keyboard ?... JamieVanCadsand 1 1,192 Oct-03-2017, 10:05 AM
Last Post: metulburr
  How to begin coding for game making [Install pygame on mac] mattkrebs 2 2,053 Apr-02-2017, 10:57 AM
Last Post: machrider

Forum Jump:


Users browsing this thread: 1 Guest(s)