Slight improvements
This commit is contained in:
@@ -13,7 +13,7 @@ namespace OpenVulkano::Input
|
||||
{
|
||||
struct KeyBinding
|
||||
{
|
||||
InputKey key;
|
||||
const InputKey key;
|
||||
float scale;
|
||||
|
||||
KeyBinding(InputKey keyBinding, float scaleFactor)
|
||||
@@ -23,8 +23,8 @@ namespace OpenVulkano::Input
|
||||
|
||||
struct AxisButtonBinding
|
||||
{
|
||||
InputKey positive;
|
||||
InputKey negative;
|
||||
const InputKey positive;
|
||||
const InputKey negative;
|
||||
float scale;
|
||||
|
||||
AxisButtonBinding(InputKey pos, InputKey neg, float scaleFactor)
|
||||
|
||||
@@ -310,12 +310,12 @@ namespace OpenVulkano::Input
|
||||
|
||||
[[nodiscard]] int16_t GetInputKey() const { return key; }
|
||||
|
||||
bool operator==(const InputKey& other)
|
||||
bool operator==(const InputKey& other) const
|
||||
{
|
||||
return deviceType == other.deviceType && type == other.type && key == other.key;
|
||||
}
|
||||
|
||||
bool operator!=(const InputKey& other)
|
||||
bool operator!=(const InputKey& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user