Nebula
Loading...
Searching...
No Matches
mousebutton.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "core/types.h"
13#include "util/string.h"
14
15//------------------------------------------------------------------------------
16namespace Input
17{
19{
20public:
31
33 static Util::String ToString(Code code);
35 static Code FromString(const Util::String& str);
37 static bool IsValid(const Util::String& str);
38};
39
40} // namespace Input
41//------------------------------------------------------------------------------
42
43
Mouse button codes and conversion from/to string.
Definition mousebutton.h:19
static Code FromString(const Util::String &str)
convert from string
Definition mousebutton.cc:34
static bool IsValid(const Util::String &str)
return true when a string is one of the buttons
Definition mousebutton.cc:50
static Util::String ToString(Code code)
convert to string
Definition mousebutton.cc:16
Code
code enums
Definition mousebutton.h:23
@ NumMouseButtons
Definition mousebutton.h:28
@ InvalidMouseButton
Definition mousebutton.h:29
@ MiddleButton
Definition mousebutton.h:26
@ LeftButton
Definition mousebutton.h:24
@ RightButton
Definition mousebutton.h:25
Nebula's universal string class.
Definition string.h:50
FIXME!