Facebook
From ugo, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 214
  1. package main
  2.  
  3. import (
  4.  "github.com/go-gl/glfw/v3.3/glfw"
  5. )
  6.  
  7. func handleKeyboardInput(window *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey) {
  8.  if action != glfw.Press && action != glfw.Repeat {
  9.   return
  10.  }
  11.  
  12.  if key == glfw.KeyEscape {
  13.   window.SetShouldClose(true)
  14.   return
  15.  }
  16.  
  17.  setFixedClearColor()
  18. }
  19.