Sleeping Wombat GUI  0.100
swGUI
MouseButtonEventArgs.h
Go to the documentation of this file.
1 #pragma once
2 
10 #include "MouseEventArgs.h"
11 
12 
13 
14 
15 namespace sw {
16 namespace gui
17 {
18 
19 
23 {
24  RTTR_ENABLE( MouseEventArgs )
25 public:
26 
29  bool IsUp;
30  bool IsDown;
31 
32 public:
34  : MouseEventArgs( device )
35  , Button( button )
36  , State( device->GetState()[ button ] )
37  , IsUp( device->GetState()[ button ].IsUp() )
38  , IsDown( device->GetState()[ button ].IsPressed() )
39  {}
40 };
41 
42 DEFINE_OPTR_TYPE( MouseButtonEventArgs );
43 
44 
45 
46 } // gui
47 } // sw
PhysicalButtons
Physical buttons.
Definition: InputDeviceEvent.h:215
bool IsDown
Definition: MouseButtonEventArgs.h:30
Mouse button clicked event.
Definition: MouseButtonEventArgs.h:22
Definition: DirectInputModule.cpp:11
Base class for mouse input events.
Definition: MouseEventArgs.h:22
const input::KeyState & State
Definition: MouseButtonEventArgs.h:27
MouseButtonEventArgs(input::MouseDevice *device, input::Mouse::PhysicalButtons button)
Definition: MouseButtonEventArgs.h:33
Mouse state and events.
Definition: MouseDevice.h:27
Button state structure..
Definition: KeyState.h:26
DEFINE_OPTR_TYPE(UIElement)
bool IsUp
Definition: MouseButtonEventArgs.h:29
input::Mouse::PhysicalButtons Button
Definition: MouseButtonEventArgs.h:28