Ybalrid / Annwvyn

Annwvyn C++ Open Source designed-for-VR game engine and application developement framework
MIT License
41 stars 7 forks source link

Stop iterating key presses after finding one hit #25

Closed Taiki-San closed 9 years ago

Taiki-San commented 9 years ago

Especially if isKeyDown hide a syscall, iterating after we found a key is a waste of time and of ressources

Ybalrid commented 9 years ago

that whole method will be gone soon; so don't realy care that much And it never goes to that loop after the first key press and it's not a syscall, it's just looking at a bool table that is somewere inside the OIS::Keyboard instance (private)