Did some tweaks to the CMakeLists
This commit is contained in:
@@ -72,6 +72,9 @@ int32_t main() {
|
||||
inputBind(input, INPUT_MOUSE_X, GLFW_PLATFORM_INPUT_MOUSE_X);
|
||||
inputBind(input, INPUT_MOUSE_Y, GLFW_PLATFORM_INPUT_MOUSE_Y);
|
||||
|
||||
// Set up the client
|
||||
game->engine.client.setTitle = &glfwClientSetTitle;
|
||||
|
||||
// Set up some GLFW stuff
|
||||
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
|
||||
glfwSetWindowTitle(window, game->engine.name);
|
||||
@@ -139,4 +142,8 @@ inputsource_t glfwGetInputSourceForKey(int32_t key) {
|
||||
key <= GLFW_KEY_MENU ? key - GLFW_KEY_ESCAPE + GLFW_KEY_GRAVE_ACCENT :
|
||||
key
|
||||
) % INPUT_SOURCE_COUNT);
|
||||
}
|
||||
|
||||
void glfwClientSetTitle(char *name) {
|
||||
glfwSetWindowTitle(window, name);
|
||||
}
|
Reference in New Issue
Block a user