You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a quick UI to control some parameter in my app.
I'm using OF(0.11.2) default void for MousePressed event and MouseReleased event but it seems like when i click on the gui it's also executing the code on my MousePressed event.
So I tried using the gui->getMouseDown() referenced in another issue, but it's not working here a snippet of the code:
void ofApp::update(){
gui->update();
if (ofGetMousePressed() && gui->getMouseDown() == false) {
// let the app handle the mouse event //
inGui = false;
}
else {
inGui = true;
}
}
void ofApp::mousePressed(int x, int y, int button){
if (inGui == false) {
renderer.is_mouse_button_pressed = true;
renderer.mouse_current_x = x;
renderer.mouse_current_y = y;
renderer.mouse_press_x = x;
renderer.mouse_press_y = y;
}
}
The text was updated successfully, but these errors were encountered:
Hi,
I made a quick UI to control some parameter in my app.
I'm using OF(0.11.2) default void for MousePressed event and MouseReleased event but it seems like when i click on the gui it's also executing the code on my MousePressed event.
So I tried using the gui->getMouseDown() referenced in another issue, but it's not working here a snippet of the code:
The text was updated successfully, but these errors were encountered: