← Back

ofxKeyboard

github.com/Lacty/ofxKeyboard · @Lacty
OF 0.9 Releases Utilities

simple keyboard library for gameDev for openFrameworks

0 1 Last commit 10y ago Created 10y ago

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.

veketor/ofxKeyboard by @veketor · ★ 0 · pushed 6y ago

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 -gmail

lisence

ofxKeyboard under MIT lisence

Get this addon

HTTPS
SSH

Latest release

v1.0 published 10y ago