sdl2 :: SDLKeysym :: defaultinit
core :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
sdl2 :: SDLKeysym :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# 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