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);
36};
37
38} // namespace Input
39//------------------------------------------------------------------------------
40
41
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 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
FIXME!
Nebula's universal string class.
Definition string.h:50