acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
mouse.h
1
//
2
// user_mouse.hpp
3
// base
4
//
5
// Created by Camilo Sasuke Thomas Borregaard Soerensen on 14/08/17.
6
//
7
//
8
#pragma once
9
10
11
#include "acme/platform/acme_message.h"
12
#include "acme/prototype/geometry2d/point.h"
13
#include "acme/user/user/key_state.h"
14
15
16
namespace
user
17
{
18
19
20
class
CLASS_DECL_ACME
mouse
:
21
virtual
public
::acme::message
22
{
23
protected
:
24
friend
class ::user::interaction;
25
::pointer<::windowing::cursor> m_pwindowingcursor;
26
public
:
27
28
::user::key_state m_keystate;
29
i32_point m_pointHost;
30
i32_point m_pointAbsolute;
31
i32_point m_pointDesired;
32
//bool m_bTranslated;
33
::pointer<::user::interaction> m_puserinteractionHit;
34
void
* m_pOsMouseDataOkIfOnStack =
nullptr
;
35
36
#ifdef _DEBUG
37
38
#ifdef _DEBUG
39
40
41
::i64 increment_reference_count()
override
;
42
::i64 decrement_reference_count()
override
;
43
44
#endif
45
46
47
#endif
48
49
50
virtual ::u32 get_message()
51
{
52
return
0;
53
}
54
55
//bool has_screen_coordinates() const
56
//{
57
// return m_pointScreen.x != I32_MINIMUM
58
// && m_pointScreen.y != I32_MINIMUM;
59
60
//}
61
62
63
64
65
::user::mouse & operator = (const ::user::mouse &
mouse
);
66
67
68
};
69
70
71
}
// namespace user
72
acme::message
Definition
acme_message.h:16
user::mouse
Definition
mouse.h:22
user
Created by camilo on 2026-05-28 12:34 <3ThomasBorregaardSørensen!! Mummi!! Bilbo!!
Definition
_.h:67
user
user
mouse.h
Generated by
1.17.0