3 #include "win32/mouse_button.h" 6 #include <DirectXMath.h> void SetMouseButtonPressed(MouseButton button)
Changes the press-state of a button to true.
Definition: mouse_state.cc:72
MouseButton
All mouse buttons.
Definition: mouse_button.h:10
void SetMouseButtonModifiers(MouseButton button, int modifiers)
Changes the key modifiers of a button to true.
Definition: mouse_state.cc:86
const DirectX::XMFLOAT2 & GetMousePositionDelta() const
Definition: mouse_state.cc:60
DirectX::XMFLOAT2 delta_mouse_position_
The delta of the mouse position over the last frame.
Definition: mouse_state.h:121
Implements all ImGui functionality.
Definition: imgui_manager.h:22
Class for creating windows.
Definition: window.h:30
bool GetButton(MouseButton button)
Find out whether a button is down or not.
Definition: mouse_state.cc:30
void Update()
Updates the MouseState. This makes it so that all accumulators are cleared and mouse states are updat...
Definition: mouse_state.cc:125
eastl::map< Key, T > Map
Typedef for wrapping the EASTL map.
Definition: map.h:14
bool GetButtonDown(MouseButton button)
Find out whether a button is down or not.
Definition: mouse_state.cc:36
const DirectX::XMFLOAT2 & GetScrollDelta() const
Definition: mouse_state.cc:66
DirectX::XMFLOAT2 delta_scroll_accumulator_
An accumulator of delta scrolls.
Definition: mouse_state.h:125
void SetMouseButtonReleased(MouseButton button)
Changes the release-state of a button to true.
Definition: mouse_state.cc:79
void SetMousePosition(const DirectX::XMFLOAT2 &new_mouse_position)
Sets the mouse's position.
Definition: mouse_state.cc:94
DirectX::XMFLOAT2 delta_mouse_position_accumulator_
An accumulator of delta mouse positions.
Definition: mouse_state.h:122
const DirectX::XMFLOAT2 & GetMousePosition() const
Definition: mouse_state.cc:54
DirectX::XMFLOAT2 mouse_position_
The current position of the mouse.
Definition: mouse_state.h:120
void SetMouseInWindow(bool is_mouse_in_window)
Sets whether the mouse is in the window or not.
Definition: mouse_state.cc:119
bool GetButtonPressed(MouseButton button)
Find out whether a button is pressed or not.
Definition: mouse_state.cc:42
bool GetButtonReleased(MouseButton button)
Find out whether a button is released or not.
Definition: mouse_state.cc:48
The main Blowbox namespace.
Definition: image.cc:8
DirectX::XMFLOAT2 delta_scroll_
The delta scroll of the mouse over the last frame.
Definition: mouse_state.h:124
Manages all GLFW state such as global initialization / termination, event polling, etc.
Definition: glfw_manager.h:16
Keeps track of the state of the mouse.
Definition: mouse_state.h:18
Map< MouseButton, MouseButtonState > mouse_button_states_
All the different mouse states.
Definition: mouse_state.h:129
void SetScrollDelta(const DirectX::XMFLOAT2 &delta_scroll)
Sets the mouse's scroll delta.
Definition: mouse_state.cc:110
bool is_mouse_in_window_
Whether the mouse is in the window.
Definition: mouse_state.h:127