M
M
Maxim Siomin2020-06-15 12:52:17
Python
Maxim Siomin, 2020-06-15 12:52:17

How does pygame see the mouse?

There is a 2D shooter on pygame, you need to shoot by pressing the left mouse button
. With the keyboard, I do this:

keys = pg.key.get_pressed()
 
if keys[pg.K_w]:
    y += spd

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2020-06-15
@MaxSiominDev

Here:
www.poketcode.com/en/pygame/mouse/index.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question