module RbSDL2::Event::EventType

Constants

COMMON_EVENT_TYPES
EVENT_TYPES
MEMBER_MAP
RANGE
USER_EVENT_TYPES

Public Class Methods

app_did_enter_background?(= ::SDL2::SDL_APP_DIDENTERBACKGROUND == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 162
def app_did_enter_background? = ::SDL2::SDL_APP_DIDENTERBACKGROUND == type

def app_did_enter_foreground? = ::SDL2::SDL_APP_DIDENTERFOREGROUND == type

def app_low_memory? = ::SDL2::SDL_APP_LOWMEMORY == type

def app_terminating? = ::SDL2::SDL_APP_TERMINATING == type

def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def 
app_did_enter_foreground?(= ::SDL2::SDL_APP_DIDENTERFOREGROUND == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 164
def app_did_enter_foreground? = ::SDL2::SDL_APP_DIDENTERFOREGROUND == type

def app_low_memory? = ::SDL2::SDL_APP_LOWMEMORY == type

def app_terminating? = ::SDL2::SDL_APP_TERMINATING == type

def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? 
app_low_memory?(= ::SDL2::SDL_APP_LOWMEMORY == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 166
def app_low_memory? = ::SDL2::SDL_APP_LOWMEMORY == type

def app_terminating? = ::SDL2::SDL_APP_TERMINATING == type

def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = 
app_terminating?(= ::SDL2::SDL_APP_TERMINATING == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 168
def app_terminating? = ::SDL2::SDL_APP_TERMINATING == type

def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2
app_will_enter_background?(= ::SDL2::SDL_APP_WILLENTERBACKGROUND == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 170
def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE
app_will_enter_foreground?(= ::SDL2::SDL_APP_WILLENTERFOREGROUND == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 172
def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE ==
audio_device_added?(= ::SDL2::SDL_AUDIODEVICEADDED == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 174
def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type
audio_device_removed?(= ::SDL2::SDL_AUDIODEVICEREMOVED == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 176
def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

clipboard_update?(= ::SDL2::SDL_CLIPBOARDUPDATE == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 178
def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def
controller_axis_motion?(= ::SDL2::SDL_CONTROLLERAXISMOTION == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 180
def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event?
controller_button_down?(= ::SDL2::SDL_CONTROLLERBUTTONDOWN == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 182
def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? =
controller_button_up?(= ::SDL2::SDL_CONTROLLERBUTTONUP == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 184
def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::
controller_device_added?(= ::SDL2::SDL_CONTROLLERDEVICEADDED == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 186
def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::
controller_device_remapped?(= ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 188
def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT 
controller_device_removed?(= ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 190
def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == 
controller_sensor_update?(= ::SDL2::SDL_CONTROLLERSENSORUPDATE == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 192
def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type
controller_touchpad_down?(= ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 194
def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

controller_touchpad_motion?(= ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 196
def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def 
controller_touchpad_up?(= ::SDL2::SDL_CONTROLLERTOUCHPADUP == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 198
def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? 
define_user_event(name = "user_event") click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 132
def define_user_event(name = "user_event")
  @mutex.synchronize do
    num = ::SDL2::SDL_RegisterEvents(1)
    if num == 0xFFFFFFFF
      raise RbSDL2Error, "unable to register user events because too many requests"
    end
    @name_map[num] = name
    num
  end
end
disable(type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 143
  def disable(type) = ::SDL2.SDL_EventState(type, ::SDL2::SDL_DISABLE) == ::SDL2::SDL_ENABLE

  def enable(type) = ::SDL2.SDL_EventState(type, ::SDL2::SDL_ENABLE) == ::SDL2::SDL_DISABLE

  def ignore?(type) = ::SDL2.SDL_EventState(type, ::SDL2::SDL_QUERY) == ::SDL2::SDL_IGNORE

  def minmax = RANGE.minmax

  def to_name(num) = @name_map[num]

  def to_num(obj)
    num =  @name_map.key(obj.to_s)
    raise ArgumentError unless num
    num
  end

  def to_type(num) = MEMBER_MAP[num]
end

def app_did_enter_background? = ::SDL2::SDL_APP_DIDENTERBACKGROUND == type

def app_did_enter_foreground? = ::SDL2::SDL_APP_DIDENTERFOREGROUND == type

def app_low_memory? = ::SDL2::SDL_APP_LOWMEMORY == type

def app_terminating? = ::SDL2::SDL_APP_TERMINATING == type

def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::
display_event?(= ::SDL2::SDL_DISPLAYEVENT == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 200
def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = 
dollar_gesture?(= ::SDL2::SDL_DOLLARGESTURE == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 202
def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2
dollar_record?(= ::SDL2::SDL_DOLLARRECORD == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 204
def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING
drop_begin?(= ::SDL2::SDL_DROPBEGIN == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 206
def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING ==
drop_complete?(= ::SDL2::SDL_DROPCOMPLETE == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 208
def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type
drop_file?(= ::SDL2::SDL_DROPFILE == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 210
def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

drop_text?(= ::SDL2::SDL_DROPTEXT == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 212
def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def
enable(type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 145
  def enable(type) = ::SDL2.SDL_EventState(type, ::SDL2::SDL_ENABLE) == ::SDL2::SDL_DISABLE

  def ignore?(type) = ::SDL2.SDL_EventState(type, ::SDL2::SDL_QUERY) == ::SDL2::SDL_IGNORE

  def minmax = RANGE.minmax

  def to_name(num) = @name_map[num]

  def to_num(obj)
    num =  @name_map.key(obj.to_s)
    raise ArgumentError unless num
    num
  end

  def to_type(num) = MEMBER_MAP[num]
end

def app_did_enter_background? = ::SDL2::SDL_APP_DIDENTERBACKGROUND == type

def app_did_enter_foreground? = ::SDL2::SDL_APP_DIDENTERFOREGROUND == type

def app_low_memory? = ::SDL2::SDL_APP_LOWMEMORY == type

def app_terminating? = ::SDL2::SDL_APP_TERMINATING == type

def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET 
finger_down?(= ::SDL2::SDL_FINGERDOWN == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 214
def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input?
finger_motion?(= ::SDL2::SDL_FINGERMOTION == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 218
def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::
finger_up?(= ::SDL2::SDL_FINGERUP == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 216
def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? =
ignore?(type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 147
  def ignore?(type) = ::SDL2.SDL_EventState(type, ::SDL2::SDL_QUERY) == ::SDL2::SDL_IGNORE

  def minmax = RANGE.minmax

  def to_name(num) = @name_map[num]

  def to_num(obj)
    num =  @name_map.key(obj.to_s)
    raise ArgumentError unless num
    num
  end

  def to_type(num) = MEMBER_MAP[num]
end

def app_did_enter_background? = ::SDL2::SDL_APP_DIDENTERBACKGROUND == type

def app_did_enter_foreground? = ::SDL2::SDL_APP_DIDENTERFOREGROUND == type

def app_low_memory? = ::SDL2::SDL_APP_LOWMEMORY == type

def app_terminating? = ::SDL2::SDL_APP_TERMINATING == type

def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == 
joy_axis_motion?(= ::SDL2::SDL_JOYAXISMOTION == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 220
def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::
joy_ball_motion?(= ::SDL2::SDL_JOYBALLMOTION == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 222
def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT 
joy_button_down?(= ::SDL2::SDL_JOYBUTTONDOWN == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 224
def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == 
joy_button_up?(= ::SDL2::SDL_JOYBUTTONUP == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 226
def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type
joy_device_added?(= ::SDL2::SDL_JOYDEVICEADDED == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 228
def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

joy_device_removed?(= ::SDL2::SDL_JOYDEVICEREMOVED == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 230
def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def 
joy_hat_motion?(= ::SDL2::SDL_JOYHATMOTION == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 232
def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? 
key_down?(= ::SDL2::SDL_KEYDOWN == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 234
def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = 
key_up?(= ::SDL2::SDL_KEYUP == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 236
def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES 
keymap_changed?(= ::SDL2::SDL_KEYMAPCHANGED == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 238
def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === 
locale_changed?(= ::SDL2::SDL_LOCALECHANGED == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 240
def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type
minmax(= RANGE.minmax) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 149
  def minmax = RANGE.minmax

  def to_name(num) = @name_map[num]

  def to_num(obj)
    num =  @name_map.key(obj.to_s)
    raise ArgumentError unless num
    num
  end

  def to_type(num) = MEMBER_MAP[num]
end

def app_did_enter_background? = ::SDL2::SDL_APP_DIDENTERBACKGROUND == type

def app_did_enter_foreground? = ::SDL2::SDL_APP_DIDENTERFOREGROUND == type

def app_low_memory? = ::SDL2::SDL_APP_LOWMEMORY == type

def app_terminating? = ::SDL2::SDL_APP_TERMINATING == type

def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type
mouse_button_down?(= ::SDL2::SDL_MOUSEBUTTONDOWN == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 244
def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type

def 
mouse_button_up?(= ::SDL2::SDL_MOUSEBUTTONUP == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 246
def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type

def window_event? 
mouse_motion?(= ::SDL2::SDL_MOUSEMOTION == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 248
def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type

def window_event? = 
mouse_wheel?(= ::SDL2::SDL_MOUSEWHEEL == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 250
def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type

def window_event? = ::SDL2
multi_gesture?(= ::SDL2::SDL_MULTIGESTURE == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 242
def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type

quit?(= ::SDL2::SDL_QUIT == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 252
def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type

def window_event? = ::SDL2::SDL_WINDOWEVENT
render_device_reset?(= ::SDL2::SDL_RENDER_DEVICE_RESET == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 254
def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type

def window_event? = ::SDL2::SDL_WINDOWEVENT ==
render_targets_reset?(= ::SDL2::SDL_RENDER_TARGETS_RESET == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 256
def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type

def window_event? = ::SDL2::SDL_WINDOWEVENT == type
sensor_update?(= ::SDL2::SDL_SENSORUPDATE == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 258
def sensor_update? = ::SDL2::SDL_SENSORUPDATE == type

def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

def text_editing? = ::SDL2::SDL_TEXTEDITING == type

def text_input? = ::SDL2::SDL_TEXTINPUT == type

def user_event? = USER_EVENT_TYPES === type

def window_event? = ::SDL2::SDL_WINDOWEVENT == type
    
sys_wm_event?(= ::SDL2::SDL_SYSWMEVENT == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 260
  def sys_wm_event? = ::SDL2::SDL_SYSWMEVENT == type

  def text_editing? = ::SDL2::SDL_TEXTEDITING == type

  def text_input? = ::SDL2::SDL_TEXTINPUT == type

  def user_event? = USER_EVENT_TYPES === type

  def window_event? = ::SDL2::SDL_WINDOWEVENT == type
end
text_editing?(= ::SDL2::SDL_TEXTEDITING == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 262
    def text_editing? = ::SDL2::SDL_TEXTEDITING == type

    def text_input? = ::SDL2::SDL_TEXTINPUT == type

    def user_event? = USER_EVENT_TYPES === type

    def window_event? = ::SDL2::SDL_WINDOWEVENT == type
  end
end
text_input?(= ::SDL2::SDL_TEXTINPUT == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 264
      def text_input? = ::SDL2::SDL_TEXTINPUT == type

      def user_event? = USER_EVENT_TYPES === type

      def window_event? = ::SDL2::SDL_WINDOWEVENT == type
    end
  end
end
to_name(num) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 151
  def to_name(num) = @name_map[num]

  def to_num(obj)
    num =  @name_map.key(obj.to_s)
    raise ArgumentError unless num
    num
  end

  def to_type(num) = MEMBER_MAP[num]
end

def app_did_enter_background? = ::SDL2::SDL_APP_DIDENTERBACKGROUND == type

def app_did_enter_foreground? = ::SDL2::SDL_APP_DIDENTERFOREGROUND == type

def app_low_memory? = ::SDL2::SDL_APP_LOWMEMORY == type

def app_terminating? = ::SDL2::SDL_APP_TERMINATING == type

def app_will_enter_background? = ::SDL2::SDL_APP_WILLENTERBACKGROUND == type

def app_will_enter_foreground? = ::SDL2::SDL_APP_WILLENTERFOREGROUND == type

def audio_device_added? = ::SDL2::SDL_AUDIODEVICEADDED == type

def audio_device_removed? = ::SDL2::SDL_AUDIODEVICEREMOVED == type

def clipboard_update? = ::SDL2::SDL_CLIPBOARDUPDATE == type

def controller_axis_motion? = ::SDL2::SDL_CONTROLLERAXISMOTION == type

def controller_button_down? = ::SDL2::SDL_CONTROLLERBUTTONDOWN == type

def controller_button_up? = ::SDL2::SDL_CONTROLLERBUTTONUP == type

def controller_device_added? = ::SDL2::SDL_CONTROLLERDEVICEADDED == type

def controller_device_remapped? = ::SDL2::SDL_CONTROLLERDEVICEREMAPPED == type

def controller_device_removed? = ::SDL2::SDL_CONTROLLERDEVICEREMOVED == type

def controller_sensor_update? = ::SDL2::SDL_CONTROLLERSENSORUPDATE == type

def controller_touchpad_down? = ::SDL2::SDL_CONTROLLERTOUCHPADDOWN == type

def controller_touchpad_motion? = ::SDL2::SDL_CONTROLLERTOUCHPADMOTION == type

def controller_touchpad_up? = ::SDL2::SDL_CONTROLLERTOUCHPADUP == type

def display_event? = ::SDL2::SDL_DISPLAYEVENT == type

def dollar_gesture? = ::SDL2::SDL_DOLLARGESTURE == type

def dollar_record? = ::SDL2::SDL_DOLLARRECORD == type

def drop_begin? = ::SDL2::SDL_DROPBEGIN == type

def drop_complete? = ::SDL2::SDL_DROPCOMPLETE == type

def drop_file? = ::SDL2::SDL_DROPFILE == type

def drop_text? = ::SDL2::SDL_DROPTEXT == type

def finger_down? = ::SDL2::SDL_FINGERDOWN == type

def finger_up? = ::SDL2::SDL_FINGERUP == type

def finger_motion? = ::SDL2::SDL_FINGERMOTION == type

def joy_axis_motion? = ::SDL2::SDL_JOYAXISMOTION == type

def joy_ball_motion? = ::SDL2::SDL_JOYBALLMOTION == type

def joy_button_down? = ::SDL2::SDL_JOYBUTTONDOWN == type

def joy_button_up? = ::SDL2::SDL_JOYBUTTONUP == type

def joy_device_added? = ::SDL2::SDL_JOYDEVICEADDED == type

def joy_device_removed? = ::SDL2::SDL_JOYDEVICEREMOVED == type

def joy_hat_motion? = ::SDL2::SDL_JOYHATMOTION == type

def key_down? = ::SDL2::SDL_KEYDOWN == type

def key_up? = ::SDL2::SDL_KEYUP == type

def keymap_changed? = ::SDL2::SDL_KEYMAPCHANGED == type

def locale_changed? = ::SDL2::SDL_LOCALECHANGED == type

def multi_gesture? = ::SDL2::SDL_MULTIGESTURE == type

def mouse_button_down? = ::SDL2::SDL_MOUSEBUTTONDOWN == type

def mouse_button_up? = ::SDL2::SDL_MOUSEBUTTONUP == type

def mouse_motion? = ::SDL2::SDL_MOUSEMOTION == type

def mouse_wheel? = ::SDL2::SDL_MOUSEWHEEL == type

def quit? = ::SDL2::SDL_QUIT == type

def render_device_reset? = ::SDL2::SDL_RENDER_DEVICE_RESET == type

def render_targets_reset? = ::SDL2::SDL_RENDER_TARGETS_RESET == type

to_num(obj) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 153
def to_num(obj)
  num =  @name_map.key(obj.to_s)
  raise ArgumentError unless num
  num
end
to_type(num) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 159
  def to_type(num) = MEMBER_MAP[num]
end
user_event?(= USER_EVENT_TYPES === type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 266
    def user_event? = USER_EVENT_TYPES === type

    def window_event? = ::SDL2::SDL_WINDOWEVENT == type
  end
end
window_event?(= ::SDL2::SDL_WINDOWEVENT == type) click to toggle source
# File lib/rb_sdl2/event/event_type.rb, line 268
  def window_event? = ::SDL2::SDL_WINDOWEVENT == type
end