MCPcopy Create free account
hub / github.com/crosire/reshade / is_mouse_button_pressed

Method is_mouse_button_pressed

source/input.cpp:348–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346 return is_key_down(VK_LBUTTON + button + (button < 2 ? 0 : 1)); // VK_CANCEL is being ignored by runtime
347}
348bool reshade::input::is_mouse_button_pressed(unsigned int button) const
349{
350 assert(button < 5);
351 return is_key_pressed(VK_LBUTTON + button + (button < 2 ? 0 : 1)); // VK_CANCEL is being ignored by runtime
352}
353bool reshade::input::is_mouse_button_released(unsigned int button) const
354{
355 assert(button < 5);

Callers 1

render_effectsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected