Working on time and input
This commit is contained in:
@ -56,6 +56,11 @@ int32_t DawnHost::init(DawnGame &game) {
|
||||
DAWN_GLFW_WINDOW_HEIGHT_DEFAULT
|
||||
);
|
||||
|
||||
// Default keybinds
|
||||
game.inputManager.bind(INPUT_BIND_ACCEPT, GLFW_KEY_ENTER);
|
||||
game.inputManager.bind(INPUT_BIND_ACCEPT, GLFW_KEY_E);
|
||||
game.inputManager.bind(INPUT_BIND_ACCEPT, GLFW_KEY_SPACE);
|
||||
|
||||
// Initialize the game
|
||||
auto result = game.init();
|
||||
if(result != DAWN_GAME_INIT_RESULT_SUCCESS) return result;
|
||||
|
Reference in New Issue
Block a user