This commit is contained in:
Hajime Hoshi 2013-07-06 22:21:23 +09:00
parent 1826db6f2e
commit 9b324a7e11

View File

@ -50,8 +50,8 @@ import (
type glutInputEvent struct { type glutInputEvent struct {
IsActive bool IsActive bool
X int X int
Y int Y int
} }
type GlutUI struct { type GlutUI struct {
@ -86,8 +86,8 @@ func mouse(button, state, x, y C.int) {
func motion(x, y C.int) { func motion(x, y C.int) {
currentUI.glutInputting <- glutInputEvent{ currentUI.glutInputting <- glutInputEvent{
IsActive: true, IsActive: true,
X: int(x), X: int(x),
Y: int(y), Y: int(y),
} }
} }