ofxPiMapper fixed for C++17 & oF 12.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

64 lines
1.4 KiB

#include "Gui.h"
namespace ofx {
namespace piMapper {
Gui * Gui::_instance = 0;
Gui * Gui::instance(){
if(_instance == 0){
_instance = new ofx::piMapper::Gui();
}
return _instance;
}
void Gui::notifyJointPressed(ofMouseEventArgs & args, int jointIndex){
GuiJointEvent e;
e.args = args;
e.jointIndex = jointIndex;
ofNotifyEvent(jointPressedEvent, e, this);
}
void Gui::notifyJointReleased(ofMouseEventArgs & args, int jointIndex){
GuiJointEvent e;
e.args = args;
e.jointIndex = jointIndex;
ofNotifyEvent(jointReleasedEvent, e, this);
}
void Gui::notifyJointDragged(ofMouseEventArgs & args, int jointIndex){
GuiJointEvent e;
e.args = args;
e.jointIndex = jointIndex;
ofNotifyEvent(jointDraggedEvent, e, this);
}
void Gui::notifySurfacePressed(ofMouseEventArgs & args, BaseSurface * surface){
GuiSurfaceEvent e;
e.args = args;
e.surface = surface;
ofNotifyEvent(surfacePressedEvent, e, this);
}
void Gui::notifySurfaceReleased(ofMouseEventArgs & args, BaseSurface * surface){
GuiSurfaceEvent e;
e.args = args;
e.surface = surface;
ofNotifyEvent(surfaceReleasedEvent, e, this);
}
void Gui::notifySurfaceDragged(ofMouseEventArgs & args, BaseSurface * surface){
GuiSurfaceEvent e;
e.args = args;
e.surface = surface;
ofNotifyEvent(surfaceDraggedEvent, e, this);
}
void Gui::notifyBackgroundPressed(ofMouseEventArgs & args){
GuiBackgroundEvent e;
e.args = args;
ofNotifyEvent(backgroundPressedEvent, e, this);
}
} // piMapper
} // ofx