M
M
Max 3422018-06-18 15:00:50
Python
Max 342, 2018-06-18 15:00:50

Python buttons under joystick?

I apologize in advance if the task is not clearly described:
- how to write a code for a joystick in python (with two buttons and a scroll), and which library is better to use (if at all necessary)?
Type two variables, when the button is pressed, they transfer the value 1 or are in the standby mode. Do I need to use oop?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TarasYa, 2018-06-19
@TarasYa

You seem to have misunderstood the essence of OOP. According to your description, a function is needed here. To work with a joystick, I recommend the pygame library. www.pygame.org
PS Also thanks to this library you can even write a small indie game

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question