-
-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
On at least win32,
when pressed is false, repeat is (sometimes, if not always) true.
void keyfunc(RGFW_window* win, RGFW_key key, RGFW_keymod keyMod, RGFW_bool repeat, RGFW_bool pressed) {
if( repeat ) // intention to ignore key repeats ends up ignoring key-releases too
return;
if( pressed ){
if( key == RGFW_space ) {
start_charging_plasma_pistol();
}
}else{
//DEAD CODE
if( key == RGFW_space ){
fire_plasma_pistol();
}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels