Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Colour Cycling
#10
Tilengine uses a virtual input scheme that simulates the setup of an arcade or console game: 4 directions and 6 action buttons. You can assign keys with Window.define_input_key() and gamepad buttons Window.define_input_button() 

Release 1.21 introduced the ability to get direct access to underlying SDL2 events, so you can bypass the built-in input method and react to any key or device (joystick for example) using SDL events. This feature is implemented inside the core library, but the python binding isn't yet updated to reflect this through a binding to PySDL2.

I can't help you learning PySDL2, but there are lots of resources and examples on SDL2 because it's a very used library, and PySDL2 is just a thin binding with some added features. Your best sources are the official SDL2 and PySDL2 documentation.
Reply


Messages In This Thread
Colour Cycling - by PerspexSphinx - 04-18-2018, 06:09 AM
RE: Colour Cycling - by megamarc - 04-19-2018, 03:51 AM
RE: Colour Cycling - by PerspexSphinx - 04-28-2018, 06:08 AM
RE: Colour Cycling - by megamarc - 04-28-2018, 11:37 PM
RE: Colour Cycling - by PerspexSphinx - 04-29-2018, 02:53 AM
RE: Colour Cycling - by megamarc - 04-30-2018, 04:06 PM
RE: Colour Cycling - by PerspexSphinx - 05-06-2018, 03:33 AM
RE: Colour Cycling - by megamarc - 05-07-2018, 10:50 PM
RE: Colour Cycling - by PerspexSphinx - 05-17-2018, 03:36 AM
RE: Colour Cycling - by megamarc - 05-21-2018, 07:18 AM
RE: Colour Cycling - by PerspexSphinx - 05-31-2018, 02:33 AM
RE: Colour Cycling - by megamarc - 06-02-2018, 01:19 AM
RE: Colour Cycling - by PerspexSphinx - 02-27-2019, 08:26 AM
RE: Colour Cycling - by megamarc - 02-28-2019, 07:43 AM
RE: Colour Cycling - by PerspexSphinx - 04-26-2019, 05:24 PM
RE: Colour Cycling - by megamarc - 05-01-2019, 09:31 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)