Added reasons to assertions
This commit is contained in:
1 parent
ef6b269141
commit
5b01eb904d
78 files changed
+357
-289
No files matched your search
@@ -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