MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / ToString

Method ToString

tests/Engine/Platform/EventHandler/EventState.cpp:56–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56Nz::String EventState::ToString(const Nz::WindowEvent& event) const
57{
58 switch (event.type)
59 {
60 case Nz::WindowEventType_GainedFocus:
61 return "WindowEventType_GainedFocus";
62 case Nz::WindowEventType_LostFocus:
63 return "WindowEventType_LostFocus";
64 case Nz::WindowEventType_KeyPressed:
65 return "WindowEventType_KeyPressed";
66 case Nz::WindowEventType_KeyReleased:
67 return "WindowEventType_KeyReleased";
68 case Nz::WindowEventType_MouseButtonDoubleClicked:
69 return "WindowEventType_MouseButtonDoubleClicked";
70 case Nz::WindowEventType_MouseButtonPressed:
71 return "WindowEventType_MouseButtonPressed";
72 case Nz::WindowEventType_MouseButtonReleased:
73 return "WindowEventType_MouseButtonReleased";
74 case Nz::WindowEventType_MouseEntered:
75 return "WindowEventType_MouseEntered";
76 case Nz::WindowEventType_MouseLeft:
77 return "WindowEventType_MouseLeft";
78 case Nz::WindowEventType_MouseMoved:
79 return "WindowEventType_MouseMoved";
80 case Nz::WindowEventType_MouseWheelMoved:
81 return "WindowEventType_MouseWheelMoved";
82 case Nz::WindowEventType_Moved:
83 return "WindowEventType_Moved";
84 case Nz::WindowEventType_Quit:
85 return "WindowEventType_Quit";
86 case Nz::WindowEventType_Resized:
87 return "WindowEventType_Resized";
88 case Nz::WindowEventType_TextEntered:
89 return "WindowEventType_TextEntered";
90 default:
91 return "Not handled";
92 }
93}

Callers 2

ByteArray.cppFile · 0.45
StringStream.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected