EHS/include/ehs/io/hid/Button.h

38 lines
511 B
C
Raw Normal View History

2024-02-05 22:25:30 -08:00
#pragma once
#include "ehs/EHS.h"
#include "ehs/Str.h"
namespace ehs
{
2024-07-24 01:36:20 -07:00
class EHS_LIB_IO Button
2024-02-05 22:25:30 -08:00
{
private:
UInt_32 hash;
Str_8 name;
2024-02-05 22:25:30 -08:00
public:
Button();
Button(Str_8 name);
2024-02-05 22:25:30 -08:00
Button(Button &&key) noexcept;
2024-02-05 22:25:30 -08:00
Button(const Button &key);
2024-02-05 22:25:30 -08:00
Button &operator=(Button &&key) noexcept;
2024-02-05 22:25:30 -08:00
Button &operator=(const Button &key);
2024-02-05 22:25:30 -08:00
bool operator==(const Button &key) const;
bool operator!=(const Button &key) const;
2024-02-05 22:25:30 -08:00
UInt_32 GetHash() const;
Str_8 GetName() const;
bool IsValid() const;
2024-02-05 22:25:30 -08:00
};
}