1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

remove "import const" everywhere

This commit is contained in:
Alexander Medvednikov
2019-08-23 00:00:31 +03:00
parent dcfc9eb1a1
commit f61b14584a
11 changed files with 172 additions and 308 deletions

View File

@ -135,7 +135,7 @@ fn main() {
})
ft: 0
}
game.gg.window.set_user_ptr(game) // TODO remove this when `window_user_ptr:` works
game.gg.window.set_user_ptr(game) // TODO remove this when `window_user_ptr:` works
game.init_game()
game.gg.window.onkeydown(key_down)
go game.run() // Run the game loop in a new thread
@ -374,7 +374,7 @@ fn key_down(wnd voidptr, key, code, action, mods int) {
switch key {
case glfw.KEY_ESCAPE:
glfw.set_should_close(wnd, true)
case GLFW_KEY_SPACE:
case glfw.key_space:
if game.state == .running {
game.state = .paused
} else if game.state == .paused {