Command (Windows) key is now supported as modifier key for dragging.
This commit is contained in:
parent
bfe0c9003d
commit
ee7f99166c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user