From 45cd12cccfc4c86d14d944502fe412cde93ab77b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 26 Mar 2014 23:12:48 -0400 Subject: Printed the hardware_keycode on GTK+ Area key events... something came up so I think I might be able to do what I originally wanted to do with keyboards... also more TODOs. --- area_unix.go | 1 + 1 file changed, 1 insertion(+) (limited to 'area_unix.go') diff --git a/area_unix.go b/area_unix.go index 36a7eb8..2c3a0dc 100644 --- a/area_unix.go +++ b/area_unix.go @@ -179,6 +179,7 @@ func doKeyEvent(event *C.GdkEvent, data C.gpointer, up bool) bool { var ke KeyEvent e := (*C.GdkEventKey)(unsafe.Pointer(event)) +fmt.Println("$$", up, e.hardware_keycode) s := (*sysData)(unsafe.Pointer(data)) keyval := e.keyval if extkey, ok := extkeys[keyval]; ok { -- cgit v1.2.3