Command (Windows) key is now supported as modifier key for dragging.

This commit is contained in:
Sander Schobers 2020-05-11 15:48:18 +02:00
parent bfe0c9003d
commit ee7f99166c

View File

@ -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 {