Added reasons to assertions
This commit is contained in:
@ -207,7 +207,7 @@ void glfwOnCursor(GLFWwindow* window, double xpos, double ypos) {
|
||||
|
||||
void glfwOnMouseButton(GLFWwindow* window, int button, int action, int mods) {
|
||||
if(DAWN_HOST == nullptr) return;
|
||||
assertTrue(window == DAWN_HOST->data->window);
|
||||
assertTrue(window == DAWN_HOST->data->window, "glfwOnMouseButton: Window mismatch");
|
||||
|
||||
float_t value = action == GLFW_PRESS ? 1 : 0;
|
||||
DAWN_HOST->game->inputManager.rawInputValues[INPUT_MANAGER_AXIS_MOUSE_0 + button] = value;
|
||||
|
Reference in New Issue
Block a user