MCPcopy Create free account
hub / github.com/VortexCoyote/hyprfocus / onMouseButton

Function onMouseButton

src/main.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static void onMouseButton(void* self, std::any data) {
61 try {
62 auto* const PWLRMOUSEBUTTONEVENT = std::any_cast<wlr_pointer_button_event*>(data);
63 g_bMouseWasPressed = PWLRMOUSEBUTTONEVENT->state == WLR_BUTTON_PRESSED;
64
65 } catch (std::bad_any_cast& e) { }
66}
67
68// Do NOT change this function.
69APICALL EXPORT std::string PLUGIN_API_VERSION() {

Callers 1

PLUGIN_INITFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected