| 125 | } |
| 126 | |
| 127 | static void loc_4BEFEF() |
| 128 | { |
| 129 | switch (Tutorial::state()) |
| 130 | { |
| 131 | case Tutorial::State::none: |
| 132 | break; |
| 133 | |
| 134 | case Tutorial::State::playing: |
| 135 | { |
| 136 | _keyModifier = static_cast<KeyModifier>(Tutorial::nextInput()); |
| 137 | if (!hasKeyModifier(KeyModifier::unknown)) |
| 138 | { |
| 139 | return; |
| 140 | } |
| 141 | |
| 142 | Windows::ToolTip::closeAndReset(); |
| 143 | |
| 144 | auto tutStringId = Tutorial::nextString(); |
| 145 | auto main = WindowManager::getMainWindow(); |
| 146 | auto cursor = getMouseLocation(); |
| 147 | |
| 148 | Windows::ToolTip::update(main, 0, tutStringId, cursor.x, cursor.y); |
| 149 | break; |
| 150 | } |
| 151 | |
| 152 | case Tutorial::State::recording: |
| 153 | { |
| 154 | // Vanilla had tutorial recording here at 0x004BF005 |
| 155 | // as tutorials are fixed mouse position there isn't much |
| 156 | // point implementing this code as per vanilla. |
| 157 | break; |
| 158 | } |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | // 0x0040477F |
| 163 | void readKeyboardState() |
no test coverage detected