Browse Source

Add ofApp::handleJoystick() placeholder

master
Krisjanis Rijnieks 9 years ago
parent
commit
92b125e460
  1. 17
      example-gamepad/src/ofApp.cpp
  2. 2
      example-gamepad/src/ofApp.h

17
example-gamepad/src/ofApp.cpp

@ -34,3 +34,20 @@ void ofApp::mouseDragged(int x, int y, int button){
void ofApp::mouseReleased(int x, int y, int button){
mapper.mouseReleased(x, y, button);
}
/* These values we take into consideration
y
-- x b
a
*/
void ofApp::handleJoystick(){
if("value" == "left"){
}else if("value" == "leftup"){
}else if("value" == "A"){
}
}

2
example-gamepad/src/ofApp.h

@ -17,5 +17,7 @@ class ofApp : public ofBaseApp {
void mouseDragged(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void handleJoystick();
ofxPiMapper mapper;
};
Loading…
Cancel
Save