Index

zydeco / fractal

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
916 Nov 2023 11:11a4d3636Fractal ViewerJosh Stockin122G

Blob @ zydeco / include / events / IEventMouseSubscriber.hpp

text/plain742 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(int64_t dx, int64_t dy) = 0;
23};
24
25
26#endif /* IEVENT_MOUSE_SUBSCRIBER_HPP */
27