From 6787d9585c16f8f0f4261fd7c291cd013a2ff78e Mon Sep 17 00:00:00 2001 From: faiface Date: Sat, 4 May 2019 15:37:30 +0200 Subject: remove key constants, represent keys as strings --- win/win.go | 121 ++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 68 insertions(+), 53 deletions(-) (limited to 'win') diff --git a/win/win.go b/win/win.go index 977830c..ba97cd0 100644 --- a/win/win.go +++ b/win/win.go @@ -110,6 +110,27 @@ func makeGLFWWin(o *options) (*glfw.Window, error) { // Win is an Env that handles an actual graphical window. // // It receives its events from the OS and it draws to the surface of the window. +// +// Here are all kinds of events that a window can produce, along with descriptions. +// Things enclosed in <> are values that are filled in. +// +// resize// Window resized to w x h. +// wi/close Window close button pressed. +// mo/move// Mouse moved to (x, y). +// mo/down///