simple keyboard library for gameDev for openFrameworks
Forks
Forks pushed to more recently than Lacty/ofxKeyboard itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
ofxKeyboard
usage
// in header
ofxKeyboard* key;
// in yourApp::setup()
key = ofxKeyboard::get();
// and get button input
if (key->isPressed('A')) { ofLog() << "pressed a"; }
if (key->isPushing('A')) { ofLog() << "pushing a"; }
if (key->isRelease('A')) { ofLog() << "release a"; }
if (key->anyKey()) { ofLog() << "pressed any key"; }
// another type
if (ofxKeyboard::get()->isPressed('A')) { ofLog() << "pressed a"; }my another ofxAddon
ofxJoystick for GamePad.contact
@Lost206 -twitter akira206@gmail.com -gmaillisence
ofxKeyboard under MIT lisenceGet this addon
Latest release
v1.0
published 10y ago
ofxAddons