android :: AndroidKeyEvent :: is_back_key
Was this event raised by the back key?android :: AndroidKeyEvent :: is_bumper_left
Wasself raised by the left bumper?
			android :: AndroidKeyEvent :: is_bumper_right
Wasself raised by the right bumper button?
			android :: AndroidKeyEvent :: is_dpad_down
Wasself raised by the down key on the directional pad?
			android :: AndroidKeyEvent :: is_dpad_left
Wasself raised by the left key on the directional pad?
			android :: AndroidKeyEvent :: is_dpad_right
Wasself raised by the right key on the directional pad?
			android :: AndroidKeyEvent :: is_dpad_up
Wasself raised by the up key on the directional pad?
			android :: AndroidKeyEvent :: is_media_next
Wasself raised by the media button 'next'?
			android :: AndroidKeyEvent :: is_media_pause
Wasself raised by the media button 'pause'?
			android :: AndroidKeyEvent :: is_media_previous
Wasself raised by the media button 'previous'?
			android :: AndroidKeyEvent :: is_search_key
Was this event raised by the search key?android :: AndroidKeyEvent :: is_trigger_left
Wasself raised by the left trigger?
			android :: AndroidKeyEvent :: is_trigger_right
Wasself raised by the right trigger?
			android :: AndroidKeyEvent :: is_volume_down
Was this event raised by the volume down key?android :: AndroidKeyEvent :: is_volume_up
Was this event raised by the volume up key?android :: AndroidKeyEvent :: key_code
Hardware code of the key raising this eventandroid $ AndroidKeyEvent :: SELF
Type of this instance, automatically specialized in every classcore :: 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.
			core :: Object :: defaultinit
mnit :: InputEvent :: defaultinit
mnit :: KeyEvent :: defaultinit
core :: Pointer :: defaultinit
android :: AndroidKeyEvent :: is_back_key
Was this event raised by the back key?android :: AndroidKeyEvent :: is_bumper_left
Wasself raised by the left bumper?
			android :: AndroidKeyEvent :: is_bumper_right
Wasself raised by the right bumper button?
			android :: AndroidKeyEvent :: is_dpad_down
Wasself raised by the down key on the directional pad?
			android :: AndroidKeyEvent :: is_dpad_left
Wasself raised by the left key on the directional pad?
			android :: AndroidKeyEvent :: is_dpad_right
Wasself raised by the right key on the directional pad?
			android :: AndroidKeyEvent :: is_dpad_up
Wasself raised by the up key on the directional pad?
			android :: AndroidKeyEvent :: is_media_next
Wasself raised by the media button 'next'?
			android :: AndroidKeyEvent :: is_media_pause
Wasself raised by the media button 'pause'?
			android :: AndroidKeyEvent :: is_media_previous
Wasself raised by the media button 'previous'?
			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.
			android :: AndroidKeyEvent :: is_search_key
Was this event raised by the search key?android :: AndroidKeyEvent :: is_trigger_left
Wasself raised by the left trigger?
			android :: AndroidKeyEvent :: is_trigger_right
Wasself raised by the right trigger?
			android :: AndroidKeyEvent :: is_volume_down
Was this event raised by the volume down key?android :: AndroidKeyEvent :: is_volume_up
Was this event raised by the volume up key?android :: AndroidKeyEvent :: key_code
Hardware code of the key raising this eventcore :: Object :: output_class_name
Display class name on stdout (debug only).
# An hardware key event
extern class AndroidKeyEvent `{AInputEvent *`}
	super KeyEvent
	super AndroidInputEvent
	private fun action: Int `{ return AKeyEvent_getAction(self); `}
	redef fun is_down do return action == 0
	redef fun is_up do return action == 1
	# Hardware code of the key raising this event
	fun key_code: Int `{ return AKeyEvent_getKeyCode(self); `}
	redef fun to_c
	do
		var i = native_to_c
		if i == 0 then return null
		return i.code_point
	end
	private fun native_to_c: Int `{
		int code = AKeyEvent_getKeyCode(self);
		if (code >= AKEYCODE_0 && code <= AKEYCODE_9)
			return '0'+code-AKEYCODE_0;
		if (code >= AKEYCODE_A && code <= AKEYCODE_Z)
			return 'a'+code-AKEYCODE_A;
		return 0;
	`}
	redef fun name do return key_code.to_s
	# Was this event raised by the back key?
	fun is_back_key: Bool do return key_code == 4
	# Was this event raised by the search key?
	fun is_search_key: Bool do return key_code == 84
	# Was this event raised by the volume up key?
	fun is_volume_up: Bool do return key_code == 24
	# Was this event raised by the volume down key?
	fun is_volume_down: Bool do return key_code == 25
end
					lib/android/input_events.nit:210,1--255,3
				
redef class AndroidKeyEvent
	# Was `self` raised by the A button?
	fun is_a: Bool do return key_code == 96
	# Was `self` raised by the B button?
	fun is_b: Bool do return key_code == 97
	# Was `self` raised by the X button?
	fun is_x: Bool do return key_code == 99
	# Was `self` raised by the Y button?
	fun is_y: Bool do return key_code == 100
	# Was `self` raised by the directional pad?
	fun is_dpad: Bool
	do
		return is_dpad_up or is_dpad_down or is_dpad_left or is_dpad_right
	end
	# Was `self` raised by the up key on the directional pad?
	fun is_dpad_up: Bool do return key_code == 19
	# Was `self` raised by the down key on the directional pad?
	fun is_dpad_down: Bool do return key_code == 20
	# Was `self` raised by the left key on the directional pad?
	fun is_dpad_left: Bool do return key_code == 21
	# Was `self` raised by the right key on the directional pad?
	fun is_dpad_right: Bool do return key_code == 22
	# Was `self` raised by the start button?
	fun is_start: Bool do return key_code == 108
	# Was `self` raised by the select button?
	fun is_select: Bool do return key_code == 109
	# Was `self` raised by the right bumper button?
	fun is_bumper_right: Bool do return key_code == 103
	# Was `self` raised by the right trigger?
	fun is_trigger_right: Bool do return key_code == 105
	# Was `self` raised by the left bumper?
	fun is_bumper_left: Bool do return key_code == 102
	# Was `self` raised by the left trigger?
	fun is_trigger_left: Bool do return key_code == 101
	# Was `self` raised by the media button 'previous'?
	fun is_media_previous: Bool do return key_code == 87
	# Was `self` raised by the media button 'pause'?
	fun is_media_pause: Bool do return key_code == 85
	# Was `self` raised by the media button 'next'?
	fun is_media_next: Bool do return key_code == 88
end
					lib/android/gamepad.nit:20,1--78,3