Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Modifier keys overriding keyPressed events [OSX, 0.10.0]

$
0
0

@autr wrote:

Hello, in 0.10 w. High Sierra I'm not registering two keypresses when a modifier key is also pressed. For example;

void ofApp::keyPressed( ofKeyEventArgs& e) {
    ofLog() << "ofApp::" << (e.key == 'a') << (ofGetKeyPressed(OF_KEY_COMMAND));
};

Log output is;

ofApp:: 0 1 // cmd is pressed
ofApp:: 0 1 // + a is pressed

Same for permutations

ofLog() << "ofApp::" << (ofGetKeyPressed('a')) << (ofGetKeyPressed(OF_KEY_COMMAND));
// etc

Though it works for two non-modifier keys..

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles