OpenBlox
A game engine which provides a simple and easy to learn Lua API.
OB::Enum Namespace Reference

Enumerations

enum  MessageType {
  MessageType::MessageOutput, MessageType::MessageInfo, MessageType::MessageWarning, MessageType::MessageError,
  MessageType::__COUNT
}
 
enum  UserInputType {
  UserInputType::Unknown, UserInputType::MouseButton, UserInputType::MouseWheel, UserInputType::MouseMovement,
  UserInputType::Touch, UserInputType::Keyboard, UserInputType::Focus, UserInputType::Gamepad,
  UserInputType::TextInput, UserInputType::__COUNT
}
 
enum  MouseButton {
  MouseButton::Unknown, MouseButton::Left, MouseButton::Middle, MouseButton::Right,
  MouseButton::X1, MouseButton::X2, MouseButton::__COUNT
}
 
enum  KeyCode {
  KeyCode::Unknown, KeyCode::Backspace, KeyCode::Tab, KeyCode::Clear,
  KeyCode::Return, KeyCode::Return2, KeyCode::Pause, KeyCode::Escape,
  KeyCode::Space, KeyCode::DoubleQuote, KeyCode::Hash, KeyCode::Dollar,
  KeyCode::Percent, KeyCode::Ampersand, KeyCode::Quote, KeyCode::LeftParenthesis,
  KeyCode::RightParenthesis, KeyCode::Asterisk, KeyCode::Plus, KeyCode::Comma,
  KeyCode::Minus, KeyCode::Period, KeyCode::Slash, KeyCode::Zero,
  KeyCode::One, KeyCode::Two, KeyCode::Three, KeyCode::Four,
  KeyCode::Five, KeyCode::Six, KeyCode::Seven, KeyCode::Eight,
  KeyCode::Nine, KeyCode::Colon, KeyCode::Semicolon, KeyCode::LessThan,
  KeyCode::Equals, KeyCode::GreaterThan, KeyCode::Question, KeyCode::Exclamation,
  KeyCode::At, KeyCode::LeftBracket, KeyCode::Backslash, KeyCode::RightBracket,
  KeyCode::Caret, KeyCode::Underscore, KeyCode::Backquote, KeyCode::A,
  KeyCode::B, KeyCode::C, KeyCode::D, KeyCode::E,
  KeyCode::F, KeyCode::G, KeyCode::H, KeyCode::I,
  KeyCode::J, KeyCode::K, KeyCode::L, KeyCode::M,
  KeyCode::N, KeyCode::O, KeyCode::P, KeyCode::Q,
  KeyCode::R, KeyCode::S, KeyCode::T, KeyCode::U,
  KeyCode::V, KeyCode::W, KeyCode::X, KeyCode::Y,
  KeyCode::Z, KeyCode::Delete, KeyCode::NumpadZero, KeyCode::NumpadOne,
  KeyCode::NumpadTwo, KeyCode::NumpadThree, KeyCode::NumpadFour, KeyCode::NumpadFive,
  KeyCode::NumpadSix, KeyCode::NumpadSeven, KeyCode::NumpadEight, KeyCode::NumpadNine,
  KeyCode::NumpadPeriod, KeyCode::NumpadDivide, KeyCode::NumpadMultiply, KeyCode::NumpadMinus,
  KeyCode::NumpadPlus, KeyCode::NumpadEnter, KeyCode::NumpadEquals, KeyCode::Up,
  KeyCode::Down, KeyCode::Left, KeyCode::Right, KeyCode::Insert,
  KeyCode::Select, KeyCode::Home, KeyCode::End, KeyCode::PageUp,
  KeyCode::PageDown, KeyCode::LeftShift, KeyCode::RightShift, KeyCode::LeftMeta,
  KeyCode::RightMeta, KeyCode::LeftAlt, KeyCode::RightAlt, KeyCode::LeftControl,
  KeyCode::RightControl, KeyCode::CapsLock, KeyCode::NumLock, KeyCode::ScrollLock,
  KeyCode::LeftSuper, KeyCode::RightSuper, KeyCode::Mode, KeyCode::Compose,
  KeyCode::Help, KeyCode::Print, KeyCode::PrintSc, KeyCode::Execute,
  KeyCode::SysRq, KeyCode::Menu, KeyCode::Power, KeyCode::Euro,
  KeyCode::Undo, KeyCode::Redo, KeyCode::Cut, KeyCode::Copy,
  KeyCode::Paste, KeyCode::F1, KeyCode::F2, KeyCode::F3,
  KeyCode::F4, KeyCode::F5, KeyCode::F6, KeyCode::F7,
  KeyCode::F8, KeyCode::F9, KeyCode::F10, KeyCode::F11,
  KeyCode::F12, KeyCode::F13, KeyCode::F14, KeyCode::F15,
  KeyCode::F16, KeyCode::F17, KeyCode::F18, KeyCode::F19,
  KeyCode::F20, KeyCode::F21, KeyCode::F22, KeyCode::F23,
  KeyCode::F24, KeyCode::OEM1, KeyCode::OEM2, KeyCode::OEM3,
  KeyCode::OEM4, KeyCode::OEM5, KeyCode::OEM6, KeyCode::OEM7,
  KeyCode::OEM8, KeyCode::OEM9, KeyCode::OEM_AX, KeyCode::OEM102,
  KeyCode::WWW, KeyCode::MediaPrevious, KeyCode::MediaNext, KeyCode::MediaPlayPause,
  KeyCode::MediaStop, KeyCode::ButtonX, KeyCode::ButtonY, KeyCode::ButtonA,
  KeyCode::ButtonB, KeyCode::ButtonR1, KeyCode::ButtonL1, KeyCode::ButtonR2,
  KeyCode::ButtonL2, KeyCode::ButtonR3, KeyCode::ButtonL3, KeyCode::ButtonStart,
  KeyCode::ButtonSelect, KeyCode::DPadLeft, KeyCode::DPadRight, KeyCode::DPadUp,
  KeyCode::DPadDown, KeyCode::Thumbstick1, KeyCode::Thumbstick2, KeyCode::__COUNT
}
 
enum  ScriptLanguage { ScriptLanguage::Lua, ScriptLanguage::JavaScript, ScriptLanguage::__COUNT }
 

Functions

void registerLuaEnums (lua_State *L)
 

Variables

shared_ptr< Type::LuaEnumLuaMessageType
 
shared_ptr< Type::LuaEnumLuaUserInputType
 
shared_ptr< Type::LuaEnumLuaMouseButton
 
shared_ptr< Type::LuaEnumLuaKeyCode
 
shared_ptr< Type::LuaEnumLuaScriptLanguage
 

Enumeration Type Documentation

◆ KeyCode

enum OB::Enum::KeyCode
strong
Enumerator
Unknown 
Backspace 
Tab 
Clear 
Return 
Return2 
Pause 
Escape 
Space 
DoubleQuote 
Hash 
Dollar 
Percent 
Ampersand 
Quote 
LeftParenthesis 
RightParenthesis 
Asterisk 
Plus 
Comma 
Minus 
Period 
Slash 
Zero 
One 
Two 
Three 
Four 
Five 
Six 
Seven 
Eight 
Nine 
Colon 
Semicolon 
LessThan 
Equals 
GreaterThan 
Question 
Exclamation 
At 
LeftBracket 
Backslash 
RightBracket 
Caret 
Underscore 
Backquote 
Delete 
NumpadZero 
NumpadOne 
NumpadTwo 
NumpadThree 
NumpadFour 
NumpadFive 
NumpadSix 
NumpadSeven 
NumpadEight 
NumpadNine 
NumpadPeriod 
NumpadDivide 
NumpadMultiply 
NumpadMinus 
NumpadPlus 
NumpadEnter 
NumpadEquals 
Up 
Down 
Left 
Right 
Insert 
Select 
Home 
End 
PageUp 
PageDown 
LeftShift 
RightShift 
LeftMeta 
RightMeta 
LeftAlt 
RightAlt 
LeftControl 
RightControl 
CapsLock 
NumLock 
ScrollLock 
LeftSuper 
RightSuper 
Mode 
Compose 
Help 
Print 
PrintSc 
Execute 
SysRq 
Menu 
Power 
Euro 
Undo 
Redo 
Cut 
Copy 
Paste 
F1 
F2 
F3 
F4 
F5 
F6 
F7 
F8 
F9 
F10 
F11 
F12 
F13 
F14 
F15 
F16 
F17 
F18 
F19 
F20 
F21 
F22 
F23 
F24 
OEM1 
OEM2 
OEM3 
OEM4 
OEM5 
OEM6 
OEM7 
OEM8 
OEM9 
OEM_AX 
OEM102 
WWW 
MediaPrevious 
MediaNext 
MediaPlayPause 
MediaStop 
ButtonX 
ButtonY 
ButtonA 
ButtonB 
ButtonR1 
ButtonL1 
ButtonR2 
ButtonL2 
ButtonR3 
ButtonL3 
ButtonStart 
ButtonSelect 
DPadLeft 
DPadRight 
DPadUp 
DPadDown 
Thumbstick1 
Thumbstick2 
__COUNT 

◆ MessageType

enum OB::Enum::MessageType
strong
Enumerator
MessageOutput 
MessageInfo 
MessageWarning 
MessageError 
__COUNT 

◆ MouseButton

enum OB::Enum::MouseButton
strong
Enumerator
Unknown 
Left 
Middle 
Right 
X1 
X2 
__COUNT 

◆ ScriptLanguage

Enumerator
Lua 
JavaScript 
__COUNT 

◆ UserInputType

Enumerator
Unknown 
MouseButton 
MouseWheel 
MouseMovement 
Touch 
Keyboard 
Focus 
Gamepad 
TextInput 
__COUNT 

Function Documentation

◆ registerLuaEnums()

void OB::Enum::registerLuaEnums ( lua_State *  L)

Variable Documentation

◆ LuaKeyCode

shared_ptr<Type::LuaEnum> OB::Enum::LuaKeyCode

◆ LuaMessageType

shared_ptr<Type::LuaEnum> OB::Enum::LuaMessageType

◆ LuaMouseButton

shared_ptr<Type::LuaEnum> OB::Enum::LuaMouseButton

◆ LuaScriptLanguage

shared_ptr<Type::LuaEnum> OB::Enum::LuaScriptLanguage

◆ LuaUserInputType

shared_ptr<Type::LuaEnum> OB::Enum::LuaUserInputType