| 54 | } |
| 55 | |
| 56 | Nz::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 | } |
no outgoing calls
no test coverage detected