N
N
nano_e_t_42019-11-10 12:44:59
Game development
nano_e_t_4, 2019-11-10 12:44:59

How to determine that the mouse button is pressed?

Hello everyone
I just can’t google the info, how to determine that the mouse button is clamped. Needed for shooting - the player clicked once on the left mouse button, and while it is held down, shooting is in progress. as soon as he let go - the shooting stopped

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2019-11-10
@nano_e_t_4

How do you google?
И всё нашлось.
У вас какие-то другие поисковые запросы?


Even if there were no GetMouseButton function to determine if the button was pressed, it would be easy to implement it yourself through the GetMouseButtonDown and GetMouseButtonUp functions , plus a variable in which to store the current state.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question