0x004C98CF
| 960 | |
| 961 | // 0x004C98CF |
| 962 | void minimalHandleInput() |
| 963 | { |
| 964 | WindowManager::callEvent8OnAllWindows(); |
| 965 | |
| 966 | WindowManager::invalidateAllWindowsAfterInput(); |
| 967 | Input::updateCursorPosition(); |
| 968 | |
| 969 | int32_t x; |
| 970 | int32_t y; |
| 971 | Input::MouseButton state; |
| 972 | while ((state = Input::nextMouseInput(x, y)) != Input::MouseButton::released) |
| 973 | { |
| 974 | Input::handleMouse(x, y, state); |
| 975 | } |
| 976 | |
| 977 | if (Input::hasFlag(Input::Flags::rightMousePressed)) |
| 978 | { |
| 979 | Input::handleMouse(x, y, state); |
| 980 | } |
| 981 | else if (x >= 0) |
| 982 | { |
| 983 | x = std::clamp(x, 0, Ui::width() - 1); |
| 984 | y = std::clamp(y, 0, Ui::height() - 1); |
| 985 | |
| 986 | Input::handleMouse(x, y, state); |
| 987 | Input::processMouseOver(x, y); |
| 988 | processMouseTool(x, y); |
| 989 | } |
| 990 | |
| 991 | WindowManager::callEvent9OnAllWindows(); |
| 992 | } |
| 993 | |
| 994 | void setWindowScaling(float newScaleFactor) |
| 995 | { |
no test coverage detected