Added Events::finalize

This commit is contained in:
MihailRis 2022-03-08 21:01:36 +03:00 • committed by GitHub
parent e5fd0582d6
commit 667eb6bab5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -70,6 +70,11 @@ int Events::initialize(){
return 0;
}
void Events::finalize(){
delete[] _keys;
delete[] _frames;
}
bool Events::pressed(int keycode){
if (keycode < 0 || keycode >= _MOUSE_BUTTONS)
return false;