MCPcopy Create free account
hub / github.com/EasyRPG/Player / IsPressed

Method IsPressed

src/input.cpp:248–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248bool Input::IsPressed(InputButton button) {
249 assert(!IsSystemButton(button));
250 WaitInput(true);
251 return press_time[button] > 0;
252}
253
254bool Input::IsTriggered(InputButton button) {
255 assert(!IsSystemButton(button));

Callers

nothing calls this directly

Calls 1

IsSystemButtonFunction · 0.85

Tested by

no test coverage detected