libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
MouseButtonToAnyMapping.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace Ship {
7
16 public:
22
25
32 bool ProcessMouseButtonEvent(bool isPressed, MouseBtn button);
33
35 std::string GetPhysicalDeviceName() override;
36
38 std::string GetPhysicalInputName() override;
39
40 protected:
43};
44} // namespace Ship
Base class for controller mappings that represent a physical input.
Definition ControllerInputMapping.h:16
Base class for mappings that bind a mouse button to any controller input.
Definition MouseButtonToAnyMapping.h:15
bool mKeyPressed
Definition MouseButtonToAnyMapping.h:42
MouseButtonToAnyMapping(MouseBtn button)
Constructs a mouse-button mapping for the given button.
std::string GetPhysicalDeviceName() override
Returns the human-readable name of the mouse device.
std::string GetPhysicalInputName() override
Returns the human-readable name of the bound mouse button.
virtual ~MouseButtonToAnyMapping()
Destructor.
MouseBtn mButton
Definition MouseButtonToAnyMapping.h:41
bool ProcessMouseButtonEvent(bool isPressed, MouseBtn button)
Processes a mouse button event and updates the internal pressed state.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
MouseBtn
Identifies a mouse button delivered to the input mapping system.
Definition KeyboardScancodes.h:136