Clipboard introduced, but not incorporated yet. Some defines for convenience and better readability.
This commit is contained in:
+19
-1
@@ -4,6 +4,18 @@
|
||||
#include "vmath.h"
|
||||
#include <memory>
|
||||
|
||||
#define STATE state->istate
|
||||
#define SETTINGS state->settings
|
||||
#define SCREEN_MOUSE state->screen_mouse
|
||||
#define RAW_MOUSE state->raw_mouse
|
||||
#define MOD_MOUSE state->mod_mouse
|
||||
#define MOUSE_LEFT state->mouse_left
|
||||
#define MOUSE_RIGHT state->mouse_right
|
||||
#define MOUSE_MIDDLE state->mouse_middle
|
||||
#define KEYS_DOWN state->keys_down
|
||||
#define KEYS_PRESSED state->keys_pressed
|
||||
#define KEYS_RELEASED state->keys_released
|
||||
|
||||
namespace VISEQ::APP{
|
||||
|
||||
struct AppSettings{
|
||||
@@ -63,7 +75,9 @@ namespace VISEQ::APP{
|
||||
Rectangle selection;
|
||||
|
||||
Vec2Df mouse_delta;
|
||||
|
||||
|
||||
Vec2Df hover_position;
|
||||
|
||||
void update(Camera2D camera){
|
||||
if(istate != old_istate) std::cout << state_string[istate] << std::endl;
|
||||
|
||||
@@ -114,3 +128,7 @@ namespace VISEQ::APP{
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
namespace VISEQ{
|
||||
using IState = VISEQ::APP::InteractionState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user