raw_mouse changed to screen_mouse
This commit is contained in:
+5
-1
@@ -16,6 +16,8 @@ namespace VISEQ::APP{
|
||||
};
|
||||
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT(AppSettings, width, height, grid, bpm, fps, speed, gui_selected_midi_out)
|
||||
|
||||
enum InteractionState {HOVER_CANVAS, HOVER_NODE, HOVER_CONNECTOR, ADD_NODES_MENU, DRAG_NODE, CONNECT_NODE, DRAW_SELECTION, SCALE_SELECTION, DELETE_SELECTED_NODES, COPY_SELECTED_NODES, PASTE_SELECTED_NODES};
|
||||
|
||||
class State{
|
||||
public:
|
||||
State(){}
|
||||
@@ -28,8 +30,10 @@ namespace VISEQ::APP{
|
||||
Vec2Df screen_mouse;
|
||||
Vec2Df mod_mouse;
|
||||
|
||||
InteractionState istate = HOVER_CANVAS;
|
||||
|
||||
int node_mode = 0;
|
||||
|
||||
|
||||
inline static std::shared_ptr<State> instance;
|
||||
static std::shared_ptr<State> get() {
|
||||
if(!instance){
|
||||
|
||||
Reference in New Issue
Block a user