mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-29 21:43:55 +00:00
47 lines
945 B
C
47 lines
945 B
C
#pragma once
|
|
#ifndef MOUSE_H
|
|
#define MOUSE_H
|
|
|
|
#include "../base/os.h"
|
|
#include "../base/types.h"
|
|
#include <stdbool.h>
|
|
|
|
#if defined(IS_MACOSX)
|
|
#include <ApplicationServices/ApplicationServices.h>
|
|
|
|
typedef enum {
|
|
LEFT_BUTTON = kCGMouseButtonLeft,
|
|
RIGHT_BUTTON = kCGMouseButtonRight,
|
|
CENTER_BUTTON = kCGMouseButtonCenter,
|
|
WheelDown = 4,
|
|
WheelUp = 5,
|
|
WheelLeft = 6,
|
|
WheelRight = 7,
|
|
} MMMouseButton;
|
|
#elif defined(USE_X11)
|
|
enum _MMMouseButton {
|
|
LEFT_BUTTON = 1,
|
|
CENTER_BUTTON = 2,
|
|
RIGHT_BUTTON = 3,
|
|
WheelDown = 4,
|
|
WheelUp = 5,
|
|
WheelLeft = 6,
|
|
WheelRight = 7,
|
|
};
|
|
typedef unsigned int MMMouseButton;
|
|
#elif defined(IS_WINDOWS)
|
|
enum _MMMouseButton {
|
|
LEFT_BUTTON = 1,
|
|
CENTER_BUTTON = 2,
|
|
RIGHT_BUTTON = 3,
|
|
WheelDown = 4,
|
|
WheelUp = 5,
|
|
WheelLeft = 6,
|
|
WheelRight = 7,
|
|
};
|
|
typedef unsigned int MMMouseButton;
|
|
#else
|
|
#error "No mouse button constants set for platform"
|
|
#endif
|
|
|
|
#endif /* MOUSE_H */ |