Property definitions

sdl2 $ SDLKeysym :: defaultinit
# Key information
extern class SDLKeysym `{ SDL_Keysym * `}
	# Is this the arrow right key?
	fun is_right: Bool `{ return self->sym == SDLK_RIGHT; `}

	# Is this the arrow left key?
	fun is_left: Bool `{ return self->sym == SDLK_LEFT; `}

	# Is this the arrow down key?
	fun is_down: Bool `{ return self->sym == SDLK_DOWN; `}

	# Is this the arrow up key?
	fun is_up: Bool `{ return self->sym == SDLK_UP; `}

	# Modification keys
	fun mod: Int `{ return self->mod; `}
	# TODO related masks
end
lib/sdl2/events.nit:271,1--288,3