Index

zydeco / 0dd781a

Experiment in graphics programming, C++, OpenGL, simulation techniques.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
405 Aug 2023 20:500dd781aCreate event handling and threads structureJosh Stockin1260G

Blob @ zydeco / include / events / IEventMouseSubscriber.hpp

text/plain744 bytesdownload raw
1#ifndef IEVENT_MOUSE_SUBSCRIBER_HPP
2#define IEVENT_MOUSE_SUBSCRIBER_HPP
3
4
5#include <cstdint>
6
7
8class IEventMouseSubscriber
9{
10public:
11 virtual void OnMouseLeftDownEvent(uint64_t x, uint64_t y) = 0;
12 virtual void OnMouseLeftUpEvent(uint64_t x, uint64_t y) = 0;
13
14 virtual void OnMouseMiddleDownEvent(uint64_t x, uint64_t y) = 0;
15 virtual void OnMouseMiddleUpEvent(uint64_t x, uint64_t y) = 0;
16
17 virtual void OnMouseRightDownEvent(uint64_t x, uint64_t y) = 0;
18 virtual void OnMouseRightUpEvent(uint64_t x, uint64_t y) = 0;
19
20 virtual void OnMouseMoveEvent(uint64_t x, uint64_t y, int64_t dx, int64_t dy = 0);
21
22 virtual void OnMouseWheelScrollEvent(uint64_t dx, uint64_t dy) = 0;
23};
24
25
26#endif /* IEVENT_MOUSE_SUBSCRIBER_HPP */
27