KolibriLib
Loading...
Searching...
No Matches
mouse.hpp
1#ifndef __MOUSE_H__
2#define __MOUSE_H__
3
4extern "C"
5{
6 #include <sys/ksys.h>
7}
8#include "base.hpp"
9
10namespace KolibriLib
11{
13 namespace mouse
14 {
18 {
19 ksys_pos_t a = _ksys_get_mouse_pos(KSYS_MOUSE_SCREEN_POS);
20
21 return {a.x, a.y};
22 }
23
27 {
28 ksys_pos_t a = _ksys_get_mouse_pos(KSYS_MOUSE_WINDOW_POS);
29
30 return {a.x, a.y};
31 }
32
35 inline uint32_t GetMouseButtons()
36 {
37 return _ksys_get_mouse_buttons();
38 }
39
42 inline uint32_t GetMouseWheels()
43 {
44 return _ksys_get_mouse_wheels();
45 }
46
47 }
48}
49
50
51#endif // __MOUSE_H__
point GetMousePositionInWindow()
Получить позицияю курсора внутри окна
Definition mouse.hpp:26
uint32_t GetMouseWheels()
колёсико мыши
Definition mouse.hpp:42
uint32_t GetMouseButtons()
Проверить какие кнопки мыши нажаты
Definition mouse.hpp:35
point GetMousePositionOnSreen()
Получить позицияю курсора на экране
Definition mouse.hpp:17
Основное пространство имён
Definition base.hpp:17
Просто точка
Definition base.hpp:22