Add win32 mouse button events.
This commit is contained in:
parent
2bc53186bc
commit
78a4fa99ff
20 changed files with 141 additions and 53 deletions
|
@ -14,11 +14,6 @@ public:
|
|||
Released
|
||||
};
|
||||
|
||||
private:
|
||||
Pixel mClientLocation;
|
||||
Pixel mScreenLocation;
|
||||
Action mAction;
|
||||
|
||||
public:
|
||||
|
||||
MouseEvent();
|
||||
|
@ -27,16 +22,21 @@ public:
|
|||
|
||||
static std::unique_ptr<MouseEvent> Create();
|
||||
|
||||
void SetClientLocation(Pixel location);
|
||||
Pixel getClientLocation() const;
|
||||
|
||||
void SetScreenLocation(Pixel location);
|
||||
Pixel getScreenLocation() const;
|
||||
|
||||
void SetAction(Action action);
|
||||
Action getAction() const;
|
||||
|
||||
Pixel GetClientLocation() const;
|
||||
void setClientLocation(Pixel location);
|
||||
|
||||
Pixel GetScreenLocation() const;
|
||||
void setScreenLocation(Pixel location);
|
||||
|
||||
Action GetAction() const;
|
||||
void setAction(Action action);
|
||||
|
||||
private:
|
||||
Pixel mClientLocation;
|
||||
Pixel mScreenLocation;
|
||||
Action mAction;
|
||||
};
|
||||
using MouseEventUPtr = std::unique_ptr<MouseEvent>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue