From ee7f99166c5626dac11bf85e420b1f83ba395778 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Mon, 11 May 2020 15:48:18 +0200 Subject: [PATCH] Command (Windows) key is now supported as modifier key for dragging. --- terrainrenderer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terrainrenderer.go b/terrainrenderer.go index cfd3837..ed97417 100644 --- a/terrainrenderer.go +++ b/terrainrenderer.go @@ -34,7 +34,7 @@ func (r *terrainRenderer) Init(ctx *Context) error { func isControlKeyDown() bool { state := sdl.GetKeyboardState() - return state[sdl.SCANCODE_LCTRL] == 1 || state[sdl.SCANCODE_RCTRL] == 1 + return state[sdl.SCANCODE_LCTRL] == 1 || state[sdl.SCANCODE_RCTRL] == 1 || state[sdl.SCANCODE_LGUI] == 1 || state[sdl.SCANCODE_RGUI] == 1 } func (r *terrainRenderer) Handle(ctx *Context, event sdl.Event) bool {