MCPcopy Create free account
hub / github.com/cococry/leif / lf_key_changed

Function lf_key_changed

leif.c:2286–2290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2284}
2285
2286bool lf_key_changed(uint32_t key) {
2287 bool ret = state.input.keyboard.keys_changed[key];
2288 state.input.keyboard.keys_changed[key] = false;
2289 return ret;
2290}
2291
2292bool lf_mouse_button_went_down(uint32_t button) {
2293 return lf_mouse_button_changed(button) && state.input.mouse.buttons_current[button];

Callers 2

lf_key_went_downFunction · 0.85
lf_key_is_releasedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected