├── .gitignore ├── LICENSE.md ├── defines.xml ├── files.xml ├── include ├── SDL.h ├── SDL_assert.h ├── SDL_atomic.h ├── SDL_audio.h ├── SDL_bits.h ├── SDL_blendmode.h ├── SDL_clipboard.h ├── SDL_config_android.h ├── SDL_config_iphoneos.h ├── SDL_config_macosx.h ├── SDL_config_minimal.h ├── SDL_config_os2.h ├── SDL_config_pandora.h ├── SDL_config_psp.h ├── SDL_config_windows.h ├── SDL_config_winrt.h ├── SDL_config_wiz.h ├── SDL_copying.h ├── SDL_cpuinfo.h ├── SDL_egl.h ├── SDL_endian.h ├── SDL_error.h ├── SDL_events.h ├── SDL_filesystem.h ├── SDL_gamecontroller.h ├── SDL_gesture.h ├── SDL_haptic.h ├── SDL_hints.h ├── SDL_joystick.h ├── SDL_keyboard.h ├── SDL_keycode.h ├── SDL_loadso.h ├── SDL_log.h ├── SDL_main.h ├── SDL_messagebox.h ├── SDL_metal.h ├── SDL_mouse.h ├── SDL_mutex.h ├── SDL_name.h ├── SDL_opengl.h ├── SDL_opengl_glext.h ├── SDL_opengles.h ├── SDL_opengles2.h ├── SDL_opengles2_gl2.h ├── SDL_opengles2_gl2ext.h ├── SDL_opengles2_gl2platform.h ├── SDL_opengles2_khrplatform.h ├── SDL_pixels.h ├── SDL_platform.h ├── SDL_power.h ├── SDL_quit.h ├── SDL_rect.h ├── SDL_render.h ├── SDL_revision.h ├── SDL_rwops.h ├── SDL_scancode.h ├── SDL_sensor.h ├── SDL_shape.h ├── SDL_stdinc.h ├── SDL_surface.h ├── SDL_system.h ├── SDL_syswm.h ├── SDL_test.h ├── SDL_test_assert.h ├── SDL_test_common.h ├── SDL_test_compare.h ├── SDL_test_crc32.h ├── SDL_test_font.h ├── SDL_test_fuzzer.h ├── SDL_test_harness.h ├── SDL_test_images.h ├── SDL_test_log.h ├── SDL_test_md5.h ├── SDL_test_memory.h ├── SDL_test_random.h ├── SDL_thread.h ├── SDL_timer.h ├── SDL_touch.h ├── SDL_types.h ├── SDL_version.h ├── SDL_video.h ├── SDL_vulkan.h ├── begin_code.h ├── close_code.h ├── configs │ ├── default │ │ └── SDL_config.h │ ├── linux │ │ └── SDL_config.h │ ├── mac │ │ └── SDL_config.h │ ├── rpi │ │ └── SDL_config.h │ ├── windows │ │ └── SDL_config.h │ └── winrt │ │ └── SDL_config.h └── pulse │ ├── cdecl.h │ ├── channelmap.h │ ├── context.h │ ├── def.h │ ├── error.h │ ├── ext-device-manager.h │ ├── ext-device-restore.h │ ├── ext-stream-restore.h │ ├── format.h │ ├── gccmacro.h │ ├── glib-mainloop.h │ ├── introspect.h │ ├── mainloop-api.h │ ├── mainloop-signal.h │ ├── mainloop.h │ ├── operation.h │ ├── proplist.h │ ├── pulseaudio.h │ ├── rtclock.h │ ├── sample.h │ ├── scache.h │ ├── simple.h │ ├── stream.h │ ├── subscribe.h │ ├── thread-mainloop.h │ ├── timeval.h │ ├── utf8.h │ ├── util.h │ ├── version.h │ ├── volume.h │ └── xmalloc.h ├── library.xml └── src ├── SDL.c ├── SDL_assert.c ├── SDL_assert_c.h ├── SDL_dataqueue.c ├── SDL_dataqueue.h ├── SDL_error.c ├── SDL_error_c.h ├── SDL_hints.c ├── SDL_hints_c.h ├── SDL_internal.h ├── SDL_log.c ├── atomic ├── SDL_atomic.c └── SDL_spinlock.c ├── audio ├── SDL_audio.c ├── SDL_audio_c.h ├── SDL_audiocvt.c ├── SDL_audiodev.c ├── SDL_audiodev_c.h ├── SDL_audiotypecvt.c ├── SDL_mixer.c ├── SDL_sysaudio.h ├── SDL_wave.c ├── SDL_wave.h ├── alsa │ ├── SDL_alsa_audio.c │ └── SDL_alsa_audio.h ├── android │ ├── SDL_androidaudio.c │ └── SDL_androidaudio.h ├── arts │ ├── SDL_artsaudio.c │ └── SDL_artsaudio.h ├── coreaudio │ ├── SDL_coreaudio.h │ └── SDL_coreaudio.m ├── directsound │ ├── SDL_directsound.c │ └── SDL_directsound.h ├── disk │ ├── SDL_diskaudio.c │ └── SDL_diskaudio.h ├── dsp │ ├── SDL_dspaudio.c │ └── SDL_dspaudio.h ├── dummy │ ├── SDL_dummyaudio.c │ └── SDL_dummyaudio.h ├── emscripten │ ├── SDL_emscriptenaudio.c │ └── SDL_emscriptenaudio.h ├── esd │ ├── SDL_esdaudio.c │ └── SDL_esdaudio.h ├── fusionsound │ ├── SDL_fsaudio.c │ └── SDL_fsaudio.h ├── haiku │ ├── SDL_haikuaudio.cc │ └── SDL_haikuaudio.h ├── jack │ ├── SDL_jackaudio.c │ └── SDL_jackaudio.h ├── nacl │ ├── SDL_naclaudio.c │ └── SDL_naclaudio.h ├── nas │ ├── SDL_nasaudio.c │ └── SDL_nasaudio.h ├── netbsd │ ├── SDL_netbsdaudio.c │ └── SDL_netbsdaudio.h ├── openslES │ ├── SDL_openslES.c │ └── SDL_openslES.h ├── paudio │ ├── SDL_paudio.c │ └── SDL_paudio.h ├── psp │ ├── SDL_pspaudio.c │ └── SDL_pspaudio.h ├── pulseaudio │ ├── SDL_pulseaudio.c │ └── SDL_pulseaudio.h ├── qsa │ ├── SDL_qsa_audio.c │ └── SDL_qsa_audio.h ├── sndio │ ├── SDL_sndioaudio.c │ └── SDL_sndioaudio.h ├── sun │ ├── SDL_sunaudio.c │ └── SDL_sunaudio.h ├── wasapi │ ├── SDL_wasapi.c │ ├── SDL_wasapi.h │ ├── SDL_wasapi_win32.c │ └── SDL_wasapi_winrt.cpp └── winmm │ ├── SDL_winmm.c │ └── SDL_winmm.h ├── core ├── android │ ├── SDL_android.c │ ├── SDL_android.h │ └── keyinfotable.h ├── linux │ ├── SDL_dbus.c │ ├── SDL_dbus.h │ ├── SDL_evdev.c │ ├── SDL_evdev.h │ ├── SDL_evdev_kbd.c │ ├── SDL_evdev_kbd.h │ ├── SDL_evdev_kbd_default_accents.h │ ├── SDL_evdev_kbd_default_keymap.h │ ├── SDL_fcitx.c │ ├── SDL_fcitx.h │ ├── SDL_ibus.c │ ├── SDL_ibus.h │ ├── SDL_ime.c │ ├── SDL_ime.h │ ├── SDL_threadprio.c │ ├── SDL_udev.c │ └── SDL_udev.h ├── unix │ ├── SDL_poll.c │ └── SDL_poll.h ├── windows │ ├── SDL_directx.h │ ├── SDL_windows.c │ ├── SDL_windows.h │ ├── SDL_xinput.c │ └── SDL_xinput.h └── winrt │ ├── SDL_winrtapp_common.cpp │ ├── SDL_winrtapp_common.h │ ├── SDL_winrtapp_direct3d.cpp │ ├── SDL_winrtapp_direct3d.h │ ├── SDL_winrtapp_xaml.cpp │ └── SDL_winrtapp_xaml.h ├── cpuinfo └── SDL_cpuinfo.c ├── dynapi ├── SDL_dynapi.c ├── SDL_dynapi.h ├── SDL_dynapi_overrides.h ├── SDL_dynapi_procs.h └── gendynapi.pl ├── events ├── SDL_clipboardevents.c ├── SDL_clipboardevents_c.h ├── SDL_displayevents.c ├── SDL_displayevents_c.h ├── SDL_dropevents.c ├── SDL_dropevents_c.h ├── SDL_events.c ├── SDL_events_c.h ├── SDL_gesture.c ├── SDL_gesture_c.h ├── SDL_keyboard.c ├── SDL_keyboard_c.h ├── SDL_mouse.c ├── SDL_mouse_c.h ├── SDL_quit.c ├── SDL_sysevents.h ├── SDL_touch.c ├── SDL_touch_c.h ├── SDL_windowevents.c ├── SDL_windowevents_c.h ├── blank_cursor.h ├── default_cursor.h ├── scancodes_darwin.h ├── scancodes_linux.h ├── scancodes_windows.h └── scancodes_xfree86.h ├── file ├── SDL_rwops.c └── cocoa │ ├── SDL_rwopsbundlesupport.h │ └── SDL_rwopsbundlesupport.m ├── filesystem ├── android │ └── SDL_sysfilesystem.c ├── cocoa │ └── SDL_sysfilesystem.m ├── dummy │ └── SDL_sysfilesystem.c ├── emscripten │ └── SDL_sysfilesystem.c ├── haiku │ └── SDL_sysfilesystem.cc ├── nacl │ └── SDL_sysfilesystem.c ├── unix │ └── SDL_sysfilesystem.c ├── windows │ └── SDL_sysfilesystem.c └── winrt │ └── SDL_sysfilesystem.cpp ├── haptic ├── SDL_haptic.c ├── SDL_haptic_c.h ├── SDL_syshaptic.h ├── android │ ├── SDL_syshaptic.c │ └── SDL_syshaptic_c.h ├── darwin │ ├── SDL_syshaptic.c │ └── SDL_syshaptic_c.h ├── dummy │ └── SDL_syshaptic.c ├── linux │ └── SDL_syshaptic.c └── windows │ ├── SDL_dinputhaptic.c │ ├── SDL_dinputhaptic_c.h │ ├── SDL_windowshaptic.c │ ├── SDL_windowshaptic_c.h │ ├── SDL_xinputhaptic.c │ └── SDL_xinputhaptic_c.h ├── hidapi ├── AUTHORS.txt ├── HACKING.txt ├── LICENSE-bsd.txt ├── LICENSE-gpl3.txt ├── LICENSE-orig.txt ├── LICENSE.txt ├── Makefile.am ├── README.txt ├── SDL_hidapi.c ├── android │ ├── hid.cpp │ ├── jni │ │ ├── Android.mk │ │ └── Application.mk │ └── project.properties ├── bootstrap ├── configure.ac ├── doxygen │ └── Doxyfile ├── hidapi │ └── hidapi.h ├── hidtest │ ├── Makefile.am │ └── hidtest.cpp ├── ios │ ├── Makefile-manual │ ├── Makefile.am │ └── hid.m ├── libusb │ ├── Makefile-manual │ ├── Makefile.am │ ├── Makefile.freebsd │ ├── Makefile.linux │ ├── hid.c │ └── hidusb.cpp ├── linux │ ├── Makefile-manual │ ├── Makefile.am │ ├── README.txt │ ├── hid.c │ ├── hid.cpp │ └── hidraw.cpp ├── m4 │ ├── ax_pthread.m4 │ └── pkg.m4 ├── mac │ ├── Makefile-manual │ ├── Makefile.am │ └── hid.c ├── pc │ ├── hidapi-hidraw.pc.in │ ├── hidapi-libusb.pc.in │ └── hidapi.pc.in ├── testgui │ ├── Makefile-manual │ ├── Makefile.am │ ├── Makefile.freebsd │ ├── Makefile.linux │ ├── Makefile.mac │ ├── Makefile.mingw │ ├── TestGUI.app.in │ │ └── Contents │ │ │ ├── Info.plist │ │ │ ├── PkgInfo │ │ │ └── Resources │ │ │ ├── English.lproj │ │ │ └── InfoPlist.strings │ │ │ └── Signal11.icns │ ├── copy_to_bundle.sh │ ├── mac_support.cpp │ ├── mac_support.h │ ├── mac_support_cocoa.m │ ├── start.sh │ ├── test.cpp │ ├── testgui.sln │ └── testgui.vcproj ├── udev │ └── 99-hid.rules └── windows │ ├── Makefile-manual │ ├── Makefile.am │ ├── Makefile.mingw │ ├── ddk_build │ ├── hidapi.def │ ├── makefile │ └── sources │ ├── hid.c │ ├── hidapi.sln │ ├── hidapi.vcproj │ └── hidtest.vcproj ├── joystick ├── SDL_gamecontroller.c ├── SDL_gamecontrollerdb.h ├── SDL_joystick.c ├── SDL_joystick_c.h ├── SDL_sysjoystick.h ├── android │ ├── SDL_sysjoystick.c │ └── SDL_sysjoystick_c.h ├── bsd │ └── SDL_sysjoystick.c ├── controller_type.h ├── darwin │ ├── SDL_sysjoystick.c │ └── SDL_sysjoystick_c.h ├── dummy │ └── SDL_sysjoystick.c ├── emscripten │ ├── SDL_sysjoystick.c │ └── SDL_sysjoystick_c.h ├── haiku │ └── SDL_haikujoystick.cc ├── hidapi │ ├── SDL_hidapi_gamecube.c │ ├── SDL_hidapi_ps4.c │ ├── SDL_hidapi_rumble.c │ ├── SDL_hidapi_rumble.h │ ├── SDL_hidapi_steam.c │ ├── SDL_hidapi_switch.c │ ├── SDL_hidapi_xbox360.c │ ├── SDL_hidapi_xbox360w.c │ ├── SDL_hidapi_xboxone.c │ ├── SDL_hidapijoystick.c │ ├── SDL_hidapijoystick_c.h │ └── steam │ │ ├── controller_constants.h │ │ └── controller_structs.h ├── iphoneos │ ├── SDL_sysjoystick.m │ └── SDL_sysjoystick_c.h ├── linux │ ├── SDL_sysjoystick.c │ └── SDL_sysjoystick_c.h ├── psp │ └── SDL_sysjoystick.c ├── sort_controllers.py ├── steam │ ├── SDL_steamcontroller.c │ └── SDL_steamcontroller.h ├── usb_ids.h └── windows │ ├── SDL_dinputjoystick.c │ ├── SDL_dinputjoystick_c.h │ ├── SDL_mmjoystick.c │ ├── SDL_windowsjoystick.c │ ├── SDL_windowsjoystick_c.h │ ├── SDL_xinputjoystick.c │ └── SDL_xinputjoystick_c.h ├── libm ├── e_atan2.c ├── e_exp.c ├── e_fmod.c ├── e_log.c ├── e_log10.c ├── e_pow.c ├── e_rem_pio2.c ├── e_sqrt.c ├── k_cos.c ├── k_rem_pio2.c ├── k_sin.c ├── k_tan.c ├── math_libm.h ├── math_private.h ├── s_atan.c ├── s_copysign.c ├── s_cos.c ├── s_fabs.c ├── s_floor.c ├── s_scalbn.c ├── s_sin.c └── s_tan.c ├── loadso ├── dlopen │ └── SDL_sysloadso.c ├── dummy │ └── SDL_sysloadso.c └── windows │ └── SDL_sysloadso.c ├── main ├── android │ └── SDL_android_main.c ├── dummy │ └── SDL_dummy_main.c ├── haiku │ ├── SDL_BApp.h │ ├── SDL_BeApp.cc │ └── SDL_BeApp.h ├── nacl │ └── SDL_nacl_main.c ├── psp │ └── SDL_psp_main.c ├── uikit │ └── SDL_uikit_main.c ├── windows │ ├── SDL_windows_main.c │ └── version.rc └── winrt │ ├── SDL2-WinRTResource_BlankCursor.cur │ ├── SDL2-WinRTResources.rc │ └── SDL_winrt_main_NonXAML.cpp ├── power ├── SDL_power.c ├── SDL_syspower.h ├── android │ └── SDL_syspower.c ├── emscripten │ └── SDL_syspower.c ├── haiku │ └── SDL_syspower.c ├── linux │ └── SDL_syspower.c ├── macosx │ └── SDL_syspower.c ├── psp │ └── SDL_syspower.c ├── uikit │ ├── SDL_syspower.h │ └── SDL_syspower.m ├── windows │ └── SDL_syspower.c └── winrt │ └── SDL_syspower.cpp ├── render ├── SDL_d3dmath.c ├── SDL_d3dmath.h ├── SDL_render.c ├── SDL_sysrender.h ├── SDL_yuv_sw.c ├── SDL_yuv_sw_c.h ├── direct3d │ ├── SDL_render_d3d.c │ ├── SDL_shaders_d3d.c │ └── SDL_shaders_d3d.h ├── direct3d11 │ ├── SDL_render_d3d11.c │ ├── SDL_render_winrt.cpp │ ├── SDL_render_winrt.h │ ├── SDL_shaders_d3d11.c │ └── SDL_shaders_d3d11.h ├── metal │ ├── SDL_render_metal.m │ ├── SDL_shaders_metal.metal │ ├── SDL_shaders_metal_ios.h │ ├── SDL_shaders_metal_osx.h │ ├── SDL_shaders_metal_tvos.h │ └── build-metal-shaders.sh ├── opengl │ ├── SDL_glfuncs.h │ ├── SDL_render_gl.c │ ├── SDL_shaders_gl.c │ └── SDL_shaders_gl.h ├── opengles │ ├── SDL_glesfuncs.h │ └── SDL_render_gles.c ├── opengles2 │ ├── SDL_gles2funcs.h │ ├── SDL_render_gles2.c │ ├── SDL_shaders_gles2.c │ └── SDL_shaders_gles2.h ├── psp │ └── SDL_render_psp.c └── software │ ├── SDL_blendfillrect.c │ ├── SDL_blendfillrect.h │ ├── SDL_blendline.c │ ├── SDL_blendline.h │ ├── SDL_blendpoint.c │ ├── SDL_blendpoint.h │ ├── SDL_draw.h │ ├── SDL_drawline.c │ ├── SDL_drawline.h │ ├── SDL_drawpoint.c │ ├── SDL_drawpoint.h │ ├── SDL_render_sw.c │ ├── SDL_render_sw_c.h │ ├── SDL_rotate.c │ └── SDL_rotate.h ├── sensor ├── SDL_sensor.c ├── SDL_sensor_c.h ├── SDL_syssensor.h ├── android │ ├── SDL_androidsensor.c │ └── SDL_androidsensor.h ├── coremotion │ ├── SDL_coremotionsensor.h │ └── SDL_coremotionsensor.m └── dummy │ ├── SDL_dummysensor.c │ └── SDL_dummysensor.h ├── stdlib ├── SDL_getenv.c ├── SDL_iconv.c ├── SDL_malloc.c ├── SDL_qsort.c ├── SDL_stdlib.c ├── SDL_string.c └── SDL_strtokr.c ├── test ├── SDL_test_assert.c ├── SDL_test_common.c ├── SDL_test_compare.c ├── SDL_test_crc32.c ├── SDL_test_font.c ├── SDL_test_fuzzer.c ├── SDL_test_harness.c ├── SDL_test_imageBlit.c ├── SDL_test_imageBlitBlend.c ├── SDL_test_imageFace.c ├── SDL_test_imagePrimitives.c ├── SDL_test_imagePrimitivesBlend.c ├── SDL_test_log.c ├── SDL_test_md5.c ├── SDL_test_memory.c └── SDL_test_random.c ├── thread ├── SDL_systhread.h ├── SDL_thread.c ├── SDL_thread_c.h ├── generic │ ├── SDL_syscond.c │ ├── SDL_sysmutex.c │ ├── SDL_sysmutex_c.h │ ├── SDL_syssem.c │ ├── SDL_systhread.c │ ├── SDL_systhread_c.h │ └── SDL_systls.c ├── psp │ ├── SDL_syscond.c │ ├── SDL_sysmutex.c │ ├── SDL_sysmutex_c.h │ ├── SDL_syssem.c │ ├── SDL_systhread.c │ └── SDL_systhread_c.h ├── pthread │ ├── SDL_syscond.c │ ├── SDL_sysmutex.c │ ├── SDL_sysmutex_c.h │ ├── SDL_syssem.c │ ├── SDL_systhread.c │ ├── SDL_systhread_c.h │ └── SDL_systls.c ├── stdcpp │ ├── SDL_syscond.cpp │ ├── SDL_sysmutex.cpp │ ├── SDL_sysmutex_c.h │ ├── SDL_systhread.cpp │ └── SDL_systhread_c.h └── windows │ ├── SDL_sysmutex.c │ ├── SDL_syssem.c │ ├── SDL_systhread.c │ ├── SDL_systhread_c.h │ └── SDL_systls.c ├── timer ├── SDL_timer.c ├── SDL_timer_c.h ├── dummy │ └── SDL_systimer.c ├── haiku │ └── SDL_systimer.c ├── psp │ └── SDL_systimer.c ├── unix │ └── SDL_systimer.c └── windows │ └── SDL_systimer.c └── video ├── SDL_RLEaccel.c ├── SDL_RLEaccel_c.h ├── SDL_blit.c ├── SDL_blit.h ├── SDL_blit_0.c ├── SDL_blit_1.c ├── SDL_blit_A.c ├── SDL_blit_N.c ├── SDL_blit_auto.c ├── SDL_blit_auto.h ├── SDL_blit_copy.c ├── SDL_blit_copy.h ├── SDL_blit_slow.c ├── SDL_blit_slow.h ├── SDL_bmp.c ├── SDL_clipboard.c ├── SDL_egl.c ├── SDL_egl_c.h ├── SDL_fillrect.c ├── SDL_pixels.c ├── SDL_pixels_c.h ├── SDL_rect.c ├── SDL_rect_c.h ├── SDL_shape.c ├── SDL_shape_internals.h ├── SDL_stretch.c ├── SDL_surface.c ├── SDL_sysvideo.h ├── SDL_video.c ├── SDL_vulkan_internal.h ├── SDL_vulkan_utils.c ├── SDL_yuv.c ├── SDL_yuv_c.h ├── android ├── SDL_androidclipboard.c ├── SDL_androidclipboard.h ├── SDL_androidevents.c ├── SDL_androidevents.h ├── SDL_androidgl.c ├── SDL_androidgl.h ├── SDL_androidkeyboard.c ├── SDL_androidkeyboard.h ├── SDL_androidmessagebox.c ├── SDL_androidmessagebox.h ├── SDL_androidmouse.c ├── SDL_androidmouse.h ├── SDL_androidtouch.c ├── SDL_androidtouch.h ├── SDL_androidvideo.c ├── SDL_androidvideo.h ├── SDL_androidvulkan.c ├── SDL_androidvulkan.h ├── SDL_androidwindow.c └── SDL_androidwindow.h ├── arm ├── pixman-arm-asm.h ├── pixman-arm-neon-asm.S ├── pixman-arm-neon-asm.h ├── pixman-arm-simd-asm.S └── pixman-arm-simd-asm.h ├── cocoa ├── SDL_cocoaclipboard.h ├── SDL_cocoaclipboard.m ├── SDL_cocoaevents.h ├── SDL_cocoaevents.m ├── SDL_cocoakeyboard.h ├── SDL_cocoakeyboard.m ├── SDL_cocoamessagebox.h ├── SDL_cocoamessagebox.m ├── SDL_cocoametalview.h ├── SDL_cocoametalview.m ├── SDL_cocoamodes.h ├── SDL_cocoamodes.m ├── SDL_cocoamouse.h ├── SDL_cocoamouse.m ├── SDL_cocoamousetap.h ├── SDL_cocoamousetap.m ├── SDL_cocoaopengl.h ├── SDL_cocoaopengl.m ├── SDL_cocoaopengles.h ├── SDL_cocoaopengles.m ├── SDL_cocoashape.h ├── SDL_cocoashape.m ├── SDL_cocoavideo.h ├── SDL_cocoavideo.m ├── SDL_cocoavulkan.h ├── SDL_cocoavulkan.m ├── SDL_cocoawindow.h └── SDL_cocoawindow.m ├── directfb ├── SDL_DirectFB_WM.c ├── SDL_DirectFB_WM.h ├── SDL_DirectFB_dyn.c ├── SDL_DirectFB_dyn.h ├── SDL_DirectFB_events.c ├── SDL_DirectFB_events.h ├── SDL_DirectFB_modes.c ├── SDL_DirectFB_modes.h ├── SDL_DirectFB_mouse.c ├── SDL_DirectFB_mouse.h ├── SDL_DirectFB_opengl.c ├── SDL_DirectFB_opengl.h ├── SDL_DirectFB_render.c ├── SDL_DirectFB_render.h ├── SDL_DirectFB_shape.c ├── SDL_DirectFB_shape.h ├── SDL_DirectFB_video.c ├── SDL_DirectFB_video.h ├── SDL_DirectFB_window.c └── SDL_DirectFB_window.h ├── dummy ├── SDL_nullevents.c ├── SDL_nullevents_c.h ├── SDL_nullframebuffer.c ├── SDL_nullframebuffer_c.h ├── SDL_nullvideo.c └── SDL_nullvideo.h ├── emscripten ├── SDL_emscriptenevents.c ├── SDL_emscriptenevents.h ├── SDL_emscriptenframebuffer.c ├── SDL_emscriptenframebuffer.h ├── SDL_emscriptenmouse.c ├── SDL_emscriptenmouse.h ├── SDL_emscriptenopengles.c ├── SDL_emscriptenopengles.h ├── SDL_emscriptenvideo.c └── SDL_emscriptenvideo.h ├── haiku ├── SDL_BWin.h ├── SDL_bclipboard.cc ├── SDL_bclipboard.h ├── SDL_bevents.cc ├── SDL_bevents.h ├── SDL_bframebuffer.cc ├── SDL_bframebuffer.h ├── SDL_bkeyboard.cc ├── SDL_bkeyboard.h ├── SDL_bmessagebox.cc ├── SDL_bmessagebox.h ├── SDL_bmodes.cc ├── SDL_bmodes.h ├── SDL_bopengl.cc ├── SDL_bopengl.h ├── SDL_bvideo.cc ├── SDL_bvideo.h ├── SDL_bwindow.cc └── SDL_bwindow.h ├── khronos ├── EGL │ ├── egl.h │ ├── eglext.h │ └── eglplatform.h ├── GLES2 │ ├── gl2.h │ ├── gl2ext.h │ └── gl2platform.h ├── KHR │ └── khrplatform.h └── vulkan │ ├── vk_icd.h │ ├── vk_layer.h │ ├── vk_platform.h │ ├── vk_sdk_platform.h │ ├── vulkan.h │ ├── vulkan.hpp │ ├── vulkan_android.h │ ├── vulkan_core.h │ ├── vulkan_fuchsia.h │ ├── vulkan_ios.h │ ├── vulkan_macos.h │ ├── vulkan_mir.h │ ├── vulkan_vi.h │ ├── vulkan_wayland.h │ ├── vulkan_win32.h │ ├── vulkan_xcb.h │ ├── vulkan_xlib.h │ └── vulkan_xlib_xrandr.h ├── kmsdrm ├── SDL_kmsdrmdyn.c ├── SDL_kmsdrmdyn.h ├── SDL_kmsdrmevents.c ├── SDL_kmsdrmevents.h ├── SDL_kmsdrmmouse.c ├── SDL_kmsdrmmouse.h ├── SDL_kmsdrmopengles.c ├── SDL_kmsdrmopengles.h ├── SDL_kmsdrmsym.h ├── SDL_kmsdrmvideo.c └── SDL_kmsdrmvideo.h ├── nacl ├── SDL_naclevents.c ├── SDL_naclevents_c.h ├── SDL_naclglue.c ├── SDL_naclopengles.c ├── SDL_naclopengles.h ├── SDL_naclvideo.c ├── SDL_naclvideo.h ├── SDL_naclwindow.c └── SDL_naclwindow.h ├── offscreen ├── SDL_offscreenevents.c ├── SDL_offscreenevents_c.h ├── SDL_offscreenframebuffer.c ├── SDL_offscreenframebuffer_c.h ├── SDL_offscreenopengl.c ├── SDL_offscreenopengl.h ├── SDL_offscreenvideo.c ├── SDL_offscreenvideo.h ├── SDL_offscreenwindow.c └── SDL_offscreenwindow.h ├── pandora ├── SDL_pandora.c ├── SDL_pandora.h ├── SDL_pandora_events.c └── SDL_pandora_events.h ├── psp ├── SDL_pspevents.c ├── SDL_pspevents_c.h ├── SDL_pspgl.c ├── SDL_pspgl_c.h ├── SDL_pspmouse.c ├── SDL_pspmouse_c.h ├── SDL_pspvideo.c └── SDL_pspvideo.h ├── qnx ├── gl.c ├── keyboard.c ├── sdl_qnx.h └── video.c ├── raspberry ├── SDL_rpievents.c ├── SDL_rpievents_c.h ├── SDL_rpimouse.c ├── SDL_rpimouse.h ├── SDL_rpiopengles.c ├── SDL_rpiopengles.h ├── SDL_rpivideo.c └── SDL_rpivideo.h ├── sdlgenblit.pl ├── uikit ├── SDL_uikitappdelegate.h ├── SDL_uikitappdelegate.m ├── SDL_uikitclipboard.h ├── SDL_uikitclipboard.m ├── SDL_uikitevents.h ├── SDL_uikitevents.m ├── SDL_uikitmessagebox.h ├── SDL_uikitmessagebox.m ├── SDL_uikitmetalview.h ├── SDL_uikitmetalview.m ├── SDL_uikitmodes.h ├── SDL_uikitmodes.m ├── SDL_uikitopengles.h ├── SDL_uikitopengles.m ├── SDL_uikitopenglview.h ├── SDL_uikitopenglview.m ├── SDL_uikitvideo.h ├── SDL_uikitvideo.m ├── SDL_uikitview.h ├── SDL_uikitview.m ├── SDL_uikitviewcontroller.h ├── SDL_uikitviewcontroller.m ├── SDL_uikitvulkan.h ├── SDL_uikitvulkan.m ├── SDL_uikitwindow.h ├── SDL_uikitwindow.m └── keyinfotable.h ├── vivante ├── SDL_vivanteopengles.c ├── SDL_vivanteopengles.h ├── SDL_vivanteplatform.c ├── SDL_vivanteplatform.h ├── SDL_vivantevideo.c ├── SDL_vivantevideo.h ├── SDL_vivantevulkan.c └── SDL_vivantevulkan.h ├── wayland ├── SDL_waylandclipboard.c ├── SDL_waylandclipboard.h ├── SDL_waylanddatamanager.c ├── SDL_waylanddatamanager.h ├── SDL_waylanddyn.c ├── SDL_waylanddyn.h ├── SDL_waylandevents.c ├── SDL_waylandevents_c.h ├── SDL_waylandmouse.c ├── SDL_waylandmouse.h ├── SDL_waylandopengles.c ├── SDL_waylandopengles.h ├── SDL_waylandsym.h ├── SDL_waylandtouch.c ├── SDL_waylandtouch.h ├── SDL_waylandvideo.c ├── SDL_waylandvideo.h ├── SDL_waylandvulkan.c ├── SDL_waylandvulkan.h ├── SDL_waylandwindow.c └── SDL_waylandwindow.h ├── windows ├── SDL_msctf.h ├── SDL_vkeys.h ├── SDL_windowsclipboard.c ├── SDL_windowsclipboard.h ├── SDL_windowsevents.c ├── SDL_windowsevents.h ├── SDL_windowsframebuffer.c ├── SDL_windowsframebuffer.h ├── SDL_windowskeyboard.c ├── SDL_windowskeyboard.h ├── SDL_windowsmessagebox.c ├── SDL_windowsmessagebox.h ├── SDL_windowsmodes.c ├── SDL_windowsmodes.h ├── SDL_windowsmouse.c ├── SDL_windowsmouse.h ├── SDL_windowsopengl.c ├── SDL_windowsopengl.h ├── SDL_windowsopengles.c ├── SDL_windowsopengles.h ├── SDL_windowsshape.c ├── SDL_windowsshape.h ├── SDL_windowstaskdialog.h ├── SDL_windowsvideo.c ├── SDL_windowsvideo.h ├── SDL_windowsvulkan.c ├── SDL_windowsvulkan.h ├── SDL_windowswindow.c ├── SDL_windowswindow.h └── wmmsg.h ├── winrt ├── SDL_winrtevents.cpp ├── SDL_winrtevents_c.h ├── SDL_winrtgamebar.cpp ├── SDL_winrtgamebar_cpp.h ├── SDL_winrtkeyboard.cpp ├── SDL_winrtmessagebox.cpp ├── SDL_winrtmessagebox.h ├── SDL_winrtmouse.cpp ├── SDL_winrtmouse_c.h ├── SDL_winrtopengles.cpp ├── SDL_winrtopengles.h ├── SDL_winrtpointerinput.cpp ├── SDL_winrtvideo.cpp └── SDL_winrtvideo_cpp.h ├── x11 ├── SDL_x11clipboard.c ├── SDL_x11clipboard.h ├── SDL_x11dyn.c ├── SDL_x11dyn.h ├── SDL_x11events.c ├── SDL_x11events.h ├── SDL_x11framebuffer.c ├── SDL_x11framebuffer.h ├── SDL_x11keyboard.c ├── SDL_x11keyboard.h ├── SDL_x11messagebox.c ├── SDL_x11messagebox.h ├── SDL_x11modes.c ├── SDL_x11modes.h ├── SDL_x11mouse.c ├── SDL_x11mouse.h ├── SDL_x11opengl.c ├── SDL_x11opengl.h ├── SDL_x11opengles.c ├── SDL_x11opengles.h ├── SDL_x11shape.c ├── SDL_x11shape.h ├── SDL_x11sym.h ├── SDL_x11touch.c ├── SDL_x11touch.h ├── SDL_x11video.c ├── SDL_x11video.h ├── SDL_x11vulkan.c ├── SDL_x11vulkan.h ├── SDL_x11window.c ├── SDL_x11window.h ├── SDL_x11xinput2.c ├── SDL_x11xinput2.h ├── edid-parse.c ├── edid.h ├── imKStoUCS.c └── imKStoUCS.h └── yuv2rgb ├── LICENSE ├── README.md ├── yuv_rgb.c ├── yuv_rgb.h ├── yuv_rgb_sse_func.h └── yuv_rgb_std_func.h /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | This software is provided 'as-is', without any express or implied 2 | warranty. In no event will the authors be held liable for any damages 3 | arising from the use of this software. 4 | 5 | Permission is granted to anyone to use this software for any purpose, 6 | including commercial applications, and to alter it and redistribute it 7 | freely, subject to the following restrictions: 8 | 9 | 1. The origin of this software must not be misrepresented; you must not 10 | claim that you wrote the original software. If you use this software 11 | in a product, an acknowledgment in the product documentation would be 12 | appreciated but is not required. 13 | 2. Altered source versions must be plainly marked as such, and must not be 14 | misrepresented as being the original software. 15 | 3. This notice may not be removed or altered from any source distribution. 16 | -------------------------------------------------------------------------------- /defines.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDLname_h_ 23 | #define SDLname_h_ 24 | 25 | #if defined(__STDC__) || defined(__cplusplus) 26 | #define NeedFunctionPrototypes 1 27 | #endif 28 | 29 | #define SDL_NAME(X) SDL_##X 30 | 31 | #endif /* SDLname_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /include/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifdef __IPHONEOS__ 30 | #include 31 | #include 32 | #else 33 | #include 34 | #include 35 | #endif 36 | 37 | #ifndef APIENTRY 38 | #define APIENTRY 39 | #endif 40 | -------------------------------------------------------------------------------- /include/SDL_opengles2_gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | /*#include */ 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-13609:34cc7d3b69d3" 2 | #define SDL_REVISION_NUMBER 13609 3 | -------------------------------------------------------------------------------- /include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /include/pulse/cdecl.h: -------------------------------------------------------------------------------- 1 | #ifndef foopulsecdeclhfoo 2 | #define foopulsecdeclhfoo 3 | 4 | /*** 5 | This file is part of PulseAudio. 6 | 7 | Copyright 2004-2006 Lennart Poettering 8 | 9 | PulseAudio is free software; you can redistribute it and/or modify 10 | it under the terms of the GNU Lesser General Public License as published 11 | by the Free Software Foundation; either version 2.1 of the License, 12 | or (at your option) any later version. 13 | 14 | PulseAudio is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | General Public License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public License 20 | along with PulseAudio; if not, write to the Free Software 21 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 22 | USA. 23 | ***/ 24 | 25 | /** \file 26 | * C++ compatibility support */ 27 | 28 | #ifdef __cplusplus 29 | /** If using C++ this macro enables C mode, otherwise does nothing */ 30 | #define PA_C_DECL_BEGIN extern "C" { 31 | /** If using C++ this macros switches back to C++ mode, otherwise does nothing */ 32 | #define PA_C_DECL_END } 33 | 34 | #else 35 | /** If using C++ this macro enables C mode, otherwise does nothing */ 36 | #define PA_C_DECL_BEGIN 37 | /** If using C++ this macros switches back to C++ mode, otherwise does nothing */ 38 | #define PA_C_DECL_END 39 | 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /include/pulse/error.h: -------------------------------------------------------------------------------- 1 | #ifndef fooerrorhfoo 2 | #define fooerrorhfoo 3 | 4 | /*** 5 | This file is part of PulseAudio. 6 | 7 | Copyright 2004-2006 Lennart Poettering 8 | Copyright 2006 Pierre Ossman for Cendio AB 9 | 10 | PulseAudio is free software; you can redistribute it and/or modify 11 | it under the terms of the GNU Lesser General Public License as published 12 | by the Free Software Foundation; either version 2.1 of the License, 13 | or (at your option) any later version. 14 | 15 | PulseAudio is distributed in the hope that it will be useful, but 16 | WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | General Public License for more details. 19 | 20 | You should have received a copy of the GNU Lesser General Public License 21 | along with PulseAudio; if not, write to the Free Software 22 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 23 | USA. 24 | ***/ 25 | 26 | #include 27 | #include 28 | 29 | /** \file 30 | * Error management */ 31 | 32 | PA_C_DECL_BEGIN 33 | 34 | /** Return a human readable error message for the specified numeric error code */ 35 | const char* pa_strerror(int error); 36 | 37 | PA_C_DECL_END 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /include/pulse/rtclock.h: -------------------------------------------------------------------------------- 1 | #ifndef foortclockfoo 2 | #define foortclockfoo 3 | 4 | /*** 5 | This file is part of PulseAudio. 6 | 7 | Copyright 2004-2009 Lennart Poettering 8 | 9 | PulseAudio is free software; you can redistribute it and/or modify 10 | it under the terms of the GNU Lesser General Public License as 11 | published by the Free Software Foundation; either version 2.1 of the 12 | License, or (at your option) any later version. 13 | 14 | PulseAudio is distributed in the hope that it will be useful, but 15 | WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | Lesser General Public License for more details. 18 | 19 | You should have received a copy of the GNU Lesser General Public 20 | License along with PulseAudio; if not, write to the Free Software 21 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 22 | USA. 23 | ***/ 24 | 25 | #include 26 | #include 27 | 28 | /** \file 29 | * Monotonic clock utilities. */ 30 | 31 | PA_C_DECL_BEGIN 32 | 33 | /** Return the current monotonic system time in usec, if such a clock 34 | * is available. If it is not available this will return the 35 | * wallclock time instead. \since 0.9.16 */ 36 | pa_usec_t pa_rtclock_now(void); 37 | 38 | PA_C_DECL_END 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /src/SDL_assert_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_assert_c_h_ 23 | #define SDL_assert_c_h_ 24 | 25 | extern void SDL_AssertionsQuit(void); 26 | 27 | #endif /* SDL_assert_c_h_ */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /src/SDL_hints_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "./SDL_internal.h" 22 | 23 | /* This file defines useful function for working with SDL hints */ 24 | 25 | #ifndef SDL_hints_c_h_ 26 | #define SDL_hints_c_h_ 27 | 28 | extern SDL_bool SDL_GetStringBoolean(const char *value, SDL_bool default_value); 29 | 30 | #endif /* SDL_hints_c_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/audio/disk/SDL_diskaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_diskaudio_h_ 24 | #define SDL_diskaudio_h_ 25 | 26 | #include "SDL_rwops.h" 27 | #include "../SDL_sysaudio.h" 28 | 29 | /* Hidden "this" pointer for the audio functions */ 30 | #define _THIS SDL_AudioDevice *this 31 | 32 | struct SDL_PrivateAudioData 33 | { 34 | /* The file descriptor for the audio device */ 35 | SDL_RWops *io; 36 | Uint32 io_delay; 37 | Uint8 *mixbuf; 38 | }; 39 | 40 | #endif /* SDL_diskaudio_h_ */ 41 | /* vi: set ts=4 sw=4 expandtab: */ 42 | -------------------------------------------------------------------------------- /src/audio/dummy/SDL_dummyaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_dummyaudio_h_ 24 | #define SDL_dummyaudio_h_ 25 | 26 | #include "../SDL_sysaudio.h" 27 | 28 | /* Hidden "this" pointer for the audio functions */ 29 | #define _THIS SDL_AudioDevice *this 30 | 31 | struct SDL_PrivateAudioData 32 | { 33 | /* The file descriptor for the audio device */ 34 | Uint8 *mixbuf; 35 | Uint32 mixlen; 36 | Uint32 write_delay; 37 | Uint32 initial_calls; 38 | }; 39 | 40 | #endif /* SDL_dummyaudio_h_ */ 41 | /* vi: set ts=4 sw=4 expandtab: */ 42 | -------------------------------------------------------------------------------- /src/audio/emscripten/SDL_emscriptenaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_emscriptenaudio_h_ 24 | #define SDL_emscriptenaudio_h_ 25 | 26 | #include "../SDL_sysaudio.h" 27 | 28 | /* Hidden "this" pointer for the audio functions */ 29 | #define _THIS SDL_AudioDevice *this 30 | 31 | struct SDL_PrivateAudioData 32 | { 33 | int unused; 34 | }; 35 | 36 | #endif /* SDL_emscriptenaudio_h_ */ 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /src/audio/haiku/SDL_haikuaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_haikuaudio_h_ 24 | #define SDL_haikuaudio_h_ 25 | 26 | #include "../SDL_sysaudio.h" 27 | 28 | /* Hidden "this" pointer for the audio functions */ 29 | #define _THIS SDL_AudioDevice *_this 30 | 31 | struct SDL_PrivateAudioData 32 | { 33 | BSoundPlayer *audio_obj; 34 | }; 35 | 36 | #endif /* SDL_haikuaudio_h_ */ 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /src/audio/jack/SDL_jackaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #ifndef SDL_jackaudio_h_ 22 | #define SDL_jackaudio_h_ 23 | 24 | #include 25 | 26 | #include "../SDL_sysaudio.h" 27 | 28 | /* Hidden "this" pointer for the audio functions */ 29 | #define _THIS SDL_AudioDevice *this 30 | 31 | struct SDL_PrivateAudioData 32 | { 33 | jack_client_t *client; 34 | SDL_sem *iosem; 35 | float *iobuffer; 36 | jack_port_t **sdlports; 37 | }; 38 | 39 | #endif /* SDL_jackaudio_h_ */ 40 | 41 | /* vi: set ts=4 sw=4 expandtab: */ 42 | -------------------------------------------------------------------------------- /src/audio/nacl/SDL_naclaudio.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #ifndef SDL_naclaudio_h_ 25 | #define SDL_naclaudio_h_ 26 | 27 | #include "SDL_audio.h" 28 | #include "../SDL_sysaudio.h" 29 | #include "SDL_mutex.h" 30 | 31 | #include "ppapi/c/ppb_audio.h" 32 | 33 | #define _THIS SDL_AudioDevice *_this 34 | #define private _this->hidden 35 | 36 | typedef struct SDL_PrivateAudioData { 37 | SDL_mutex* mutex; 38 | PP_Resource audio; 39 | } SDL_PrivateAudioData; 40 | 41 | #endif /* SDL_naclaudio_h_ */ 42 | 43 | /* vi: set ts=4 sw=4 expandtab: */ 44 | -------------------------------------------------------------------------------- /src/audio/sun/SDL_sunaudio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/native-toolkit/libsdl/fa51fcb56b152ba6419b6decfef5dad48b075ac2/src/audio/sun/SDL_sunaudio.c -------------------------------------------------------------------------------- /src/core/linux/SDL_evdev.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #ifndef SDL_evdev_h_ 25 | #define SDL_evdev_h_ 26 | 27 | #ifdef SDL_INPUT_LINUXEV 28 | 29 | #include "SDL_events.h" 30 | 31 | extern int SDL_EVDEV_Init(void); 32 | extern void SDL_EVDEV_Quit(void); 33 | extern void SDL_EVDEV_Poll(void); 34 | 35 | #endif /* SDL_INPUT_LINUXEV */ 36 | 37 | #endif /* SDL_evdev_h_ */ 38 | 39 | /* vi: set ts=4 sw=4 expandtab: */ 40 | -------------------------------------------------------------------------------- /src/core/linux/SDL_evdev_kbd.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_evdev_kbd_h_ 23 | #define SDL_evdev_kbd_h_ 24 | 25 | struct SDL_EVDEV_keyboard_state; 26 | typedef struct SDL_EVDEV_keyboard_state SDL_EVDEV_keyboard_state; 27 | 28 | extern SDL_EVDEV_keyboard_state *SDL_EVDEV_kbd_init(void); 29 | extern void SDL_EVDEV_kbd_keycode(SDL_EVDEV_keyboard_state *state, unsigned int keycode, int down); 30 | extern void SDL_EVDEV_kbd_quit(SDL_EVDEV_keyboard_state *state); 31 | 32 | #endif /* SDL_evdev_kbd_h_ */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /src/core/unix/SDL_poll.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #ifndef SDL_poll_h_ 25 | #define SDL_poll_h_ 26 | 27 | #include "SDL_stdinc.h" 28 | 29 | 30 | extern int SDL_IOReady(int fd, SDL_bool forWrite, int timeoutMS); 31 | 32 | #endif /* SDL_poll_h_ */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /src/core/winrt/SDL_winrtapp_common.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL_config.h" 22 | 23 | #ifndef SDL_winrtapp_common_h_ 24 | #define SDL_winrtapp_common_h_ 25 | 26 | /* A pointer to the app's C-style main() function (which is a different 27 | function than the WinRT app's actual entry point). 28 | */ 29 | extern int (*WINRT_SDLAppEntryPoint)(int, char **); 30 | 31 | #endif // SDL_winrtapp_common_h_ 32 | -------------------------------------------------------------------------------- /src/core/winrt/SDL_winrtapp_xaml.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL_config.h" 22 | 23 | #ifndef SDL_winrtapp_xaml_h_ 24 | #define SDL_winrtapp_xaml_h_ 25 | 26 | #include "SDL_stdinc.h" 27 | 28 | #ifdef __cplusplus 29 | extern SDL_bool WINRT_XAMLWasEnabled; 30 | extern int SDL_WinRTInitXAMLApp(int (*mainFunction)(int, char **), void * backgroundPanelAsIInspectable); 31 | #endif // ifdef __cplusplus 32 | 33 | #endif // SDL_winrtapp_xaml_h_ 34 | -------------------------------------------------------------------------------- /src/events/SDL_clipboardevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef SDL_clipboardevents_c_h_ 24 | #define SDL_clipboardevents_c_h_ 25 | 26 | extern int SDL_SendClipboardUpdate(void); 27 | 28 | #endif /* SDL_clipboardevents_c_h_ */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /src/events/SDL_displayevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef SDL_displayevents_c_h_ 24 | #define SDL_displayevents_c_h_ 25 | 26 | extern int SDL_SendDisplayEvent(SDL_VideoDisplay *display, Uint8 displayevent, int data1); 27 | 28 | #endif /* SDL_displayevents_c_h_ */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /src/events/SDL_dropevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef SDL_dropevents_c_h_ 24 | #define SDL_dropevents_c_h_ 25 | 26 | extern int SDL_SendDropFile(SDL_Window *window, const char *file); 27 | extern int SDL_SendDropText(SDL_Window *window, const char *text); 28 | extern int SDL_SendDropComplete(SDL_Window *window); 29 | 30 | #endif /* SDL_dropevents_c_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/events/SDL_gesture_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef SDL_gesture_c_h_ 24 | #define SDL_gesture_c_h_ 25 | 26 | extern int SDL_GestureAddTouch(SDL_TouchID touchId); 27 | extern int SDL_GestureDelTouch(SDL_TouchID touchId); 28 | 29 | extern void SDL_GestureProcessEvent(SDL_Event* event); 30 | 31 | extern void SDL_GestureQuit(void); 32 | 33 | #endif /* SDL_gesture_c_h_ */ 34 | 35 | /* vi: set ts=4 sw=4 expandtab: */ 36 | -------------------------------------------------------------------------------- /src/events/SDL_sysevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #include "../video/SDL_sysvideo.h" 24 | 25 | /* Useful functions and variables from SDL_sysevents.c */ 26 | 27 | #if defined(__HAIKU__) 28 | /* The Haiku event loops run in a separate thread */ 29 | #define MUST_THREAD_EVENTS 30 | #endif 31 | 32 | #ifdef __WIN32__ /* Windows doesn't allow a separate event thread */ 33 | #define CANT_THREAD_EVENTS 34 | #endif 35 | 36 | /* vi: set ts=4 sw=4 expandtab: */ 37 | -------------------------------------------------------------------------------- /src/events/SDL_windowevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../SDL_internal.h" 22 | 23 | #ifndef SDL_windowevents_c_h_ 24 | #define SDL_windowevents_c_h_ 25 | 26 | extern int SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent, 27 | int data1, int data2); 28 | 29 | #endif /* SDL_windowevents_c_h_ */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /src/events/blank_cursor.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 23 | * A default blank 8x8 cursor */ 24 | 25 | #define BLANK_CWIDTH 8 26 | #define BLANK_CHEIGHT 8 27 | #define BLANK_CHOTX 0 28 | #define BLANK_CHOTY 0 29 | 30 | static const unsigned char blank_cdata[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; 31 | static const unsigned char blank_cmask[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/events/default_cursor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/native-toolkit/libsdl/fa51fcb56b152ba6419b6decfef5dad48b075ac2/src/events/default_cursor.h -------------------------------------------------------------------------------- /src/file/cocoa/SDL_rwopsbundlesupport.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifdef __APPLE__ 23 | 24 | #include 25 | 26 | #ifndef SDL_rwopsbundlesupport_h 27 | #define SDL_rwopsbundlesupport_h 28 | FILE* SDL_OpenFPFromBundleOrFallback(const char *file, const char *mode); 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /src/filesystem/nacl/SDL_sysfilesystem.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | #include "SDL_error.h" 23 | #include "SDL_filesystem.h" 24 | 25 | #ifdef SDL_FILESYSTEM_NACL 26 | 27 | char * 28 | SDL_GetBasePath(void) 29 | { 30 | SDL_Unsupported(); 31 | return NULL; 32 | } 33 | 34 | char * 35 | SDL_GetPrefPath(const char *org, const char *app) 36 | { 37 | SDL_Unsupported(); 38 | return NULL; 39 | } 40 | 41 | #endif /* SDL_FILESYSTEM_NACL */ 42 | 43 | /* vi: set ts=4 sw=4 expandtab: */ 44 | -------------------------------------------------------------------------------- /src/haptic/SDL_haptic_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_haptic_c_h_ 23 | #define SDL_haptic_c_h_ 24 | 25 | extern int SDL_HapticInit(void); 26 | extern void SDL_HapticQuit(void); 27 | 28 | #endif /* SDL_haptic_c_h_ */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /src/haptic/android/SDL_syshaptic_c.h: -------------------------------------------------------------------------------- 1 | #include "SDL_config.h" 2 | 3 | #ifdef SDL_HAPTIC_ANDROID 4 | 5 | 6 | extern int Android_AddHaptic(int device_id, const char *name); 7 | extern int Android_RemoveHaptic(int device_id); 8 | 9 | 10 | #endif /* SDL_HAPTIC_ANDROID */ 11 | 12 | /* vi: set ts=4 sw=4 expandtab: */ 13 | -------------------------------------------------------------------------------- /src/haptic/darwin/SDL_syshaptic_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | extern int MacHaptic_MaybeAddDevice( io_object_t device ); 23 | extern int MacHaptic_MaybeRemoveDevice( io_object_t device ); 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | 27 | -------------------------------------------------------------------------------- /src/hidapi/AUTHORS.txt: -------------------------------------------------------------------------------- 1 | 2 | HIDAPI Authors: 3 | 4 | Alan Ott : 5 | Original Author and Maintainer 6 | Linux, Windows, and Mac implementations 7 | 8 | Ludovic Rousseau : 9 | Formatting for Doxygen documentation 10 | Bug fixes 11 | Correctness fixes 12 | 13 | 14 | For a comprehensive list of contributions, see the commit list at github: 15 | https://github.com/libusb/hidapi/commits/master 16 | 17 | -------------------------------------------------------------------------------- /src/hidapi/HACKING.txt: -------------------------------------------------------------------------------- 1 | This file is mostly for the maintainer. 2 | 3 | 1. Build hidapi.dll 4 | 2. Build hidtest.exe in DEBUG and RELEASE 5 | 3. Commit all 6 | 7 | 4. Run the Following 8 | export VERSION=0.1.0 9 | export TAG_NAME=hidapi-$VERSION 10 | git tag $TAG_NAME 11 | git archive --format zip --prefix $TAG_NAME/ $TAG_NAME >../$TAG_NAME.zip 12 | 5. Test the zip file. 13 | 6. Run the following: 14 | git push origin $TAG_NAME 15 | 16 | -------------------------------------------------------------------------------- /src/hidapi/LICENSE-orig.txt: -------------------------------------------------------------------------------- 1 | HIDAPI - Multi-Platform library for 2 | communication with HID devices. 3 | 4 | Copyright 2009, Alan Ott, Signal 11 Software. 5 | All Rights Reserved. 6 | 7 | This software may be used by anyone for any reason so 8 | long as the copyright notice in the source files 9 | remains intact. 10 | -------------------------------------------------------------------------------- /src/hidapi/LICENSE.txt: -------------------------------------------------------------------------------- 1 | HIDAPI can be used under one of three licenses. 2 | 3 | 1. The GNU General Public License, version 3.0, in LICENSE-gpl3.txt 4 | 2. A BSD-Style License, in LICENSE-bsd.txt. 5 | 3. The more liberal original HIDAPI license. LICENSE-orig.txt 6 | 7 | The license chosen is at the discretion of the user of HIDAPI. For example: 8 | 1. An author of GPL software would likely use HIDAPI under the terms of the 9 | GPL. 10 | 11 | 2. An author of commercial closed-source software would likely use HIDAPI 12 | under the terms of the BSD-style license or the original HIDAPI license. 13 | 14 | -------------------------------------------------------------------------------- /src/hidapi/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | ACLOCAL_AMFLAGS = -I m4 3 | 4 | if OS_FREEBSD 5 | pkgconfigdir=$(prefix)/libdata/pkgconfig 6 | else 7 | pkgconfigdir=$(libdir)/pkgconfig 8 | endif 9 | 10 | if OS_LINUX 11 | pkgconfig_DATA=pc/hidapi-hidraw.pc pc/hidapi-libusb.pc 12 | else 13 | pkgconfig_DATA=pc/hidapi.pc 14 | endif 15 | 16 | SUBDIRS= 17 | 18 | if OS_LINUX 19 | SUBDIRS += linux libusb 20 | endif 21 | 22 | if OS_DARWIN 23 | SUBDIRS += mac 24 | endif 25 | 26 | if OS_IOS 27 | SUBDIRS += ios 28 | endif 29 | 30 | if OS_FREEBSD 31 | SUBDIRS += libusb 32 | endif 33 | 34 | if OS_KFREEBSD 35 | SUBDIRS += libusb 36 | endif 37 | 38 | if OS_WINDOWS 39 | SUBDIRS += windows 40 | endif 41 | 42 | SUBDIRS += hidtest 43 | 44 | if BUILD_TESTGUI 45 | SUBDIRS += testgui 46 | endif 47 | 48 | EXTRA_DIST = udev doxygen 49 | 50 | dist_doc_DATA = \ 51 | README.txt \ 52 | AUTHORS.txt \ 53 | LICENSE-bsd.txt \ 54 | LICENSE-gpl3.txt \ 55 | LICENSE-orig.txt \ 56 | LICENSE.txt 57 | 58 | SCMCLEAN_TARGETS= \ 59 | aclocal.m4 \ 60 | config.guess \ 61 | config.sub \ 62 | configure \ 63 | config.h.in \ 64 | depcomp \ 65 | install-sh \ 66 | ltmain.sh \ 67 | missing \ 68 | mac/Makefile.in \ 69 | testgui/Makefile.in \ 70 | libusb/Makefile.in \ 71 | Makefile.in \ 72 | linux/Makefile.in \ 73 | windows/Makefile.in \ 74 | m4/libtool.m4 \ 75 | m4/lt~obsolete.m4 \ 76 | m4/ltoptions.m4 \ 77 | m4/ltsugar.m4 \ 78 | m4/ltversion.m4 79 | 80 | SCMCLEAN_DIR_TARGETS = \ 81 | autom4te.cache 82 | 83 | scm-clean: distclean 84 | rm -f $(SCMCLEAN_TARGETS) 85 | rm -Rf $(SCMCLEAN_DIR_TARGETS) 86 | -------------------------------------------------------------------------------- /src/hidapi/android/jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | HIDAPI_ROOT_REL:= ../.. 4 | HIDAPI_ROOT_ABS:= $(LOCAL_PATH)/../.. 5 | 6 | include $(CLEAR_VARS) 7 | 8 | LOCAL_CPPFLAGS += -std=c++11 9 | 10 | LOCAL_SRC_FILES := \ 11 | $(HIDAPI_ROOT_REL)/android/hid.cpp 12 | 13 | LOCAL_MODULE := libhidapi 14 | LOCAL_LDLIBS := -llog 15 | 16 | include $(BUILD_SHARED_LIBRARY) 17 | -------------------------------------------------------------------------------- /src/hidapi/android/jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_STL := gnustl_static 2 | APP_ABI := armeabi-v7a 3 | -------------------------------------------------------------------------------- /src/hidapi/android/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-21 15 | -------------------------------------------------------------------------------- /src/hidapi/bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | autoreconf --install --verbose --force 3 | -------------------------------------------------------------------------------- /src/hidapi/hidtest/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ 2 | 3 | ## Linux 4 | if OS_LINUX 5 | noinst_PROGRAMS = hidtest-libusb hidtest-hidraw 6 | 7 | hidtest_hidraw_SOURCES = hidtest.cpp 8 | hidtest_hidraw_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la 9 | 10 | hidtest_libusb_SOURCES = hidtest.cpp 11 | hidtest_libusb_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la 12 | else 13 | 14 | # Other OS's 15 | noinst_PROGRAMS = hidtest 16 | 17 | hidtest_SOURCES = hidtest.cpp 18 | hidtest_LDADD = $(top_builddir)/$(backend)/libhidapi.la 19 | 20 | endif 21 | -------------------------------------------------------------------------------- /src/hidapi/ios/Makefile-manual: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-07-03 7 | ########################################### 8 | 9 | all: hidtest 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=hid.o 14 | CPPOBJS=../hidtest/hidtest.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS+=-I../hidapi -Wall -g -c 17 | LIBS=-framework CoreBluetooth -framework CoreFoundation 18 | 19 | 20 | hidtest: $(OBJS) 21 | g++ -Wall -g $^ $(LIBS) -o hidtest 22 | 23 | $(COBJS): %.o: %.c 24 | $(CC) $(CFLAGS) $< -o $@ 25 | 26 | $(CPPOBJS): %.o: %.cpp 27 | $(CXX) $(CFLAGS) $< -o $@ 28 | 29 | clean: 30 | rm -f *.o hidtest $(CPPOBJS) 31 | 32 | .PHONY: clean 33 | -------------------------------------------------------------------------------- /src/hidapi/ios/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libhidapi.la 2 | libhidapi_la_SOURCES = hid.m 3 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 4 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ 5 | 6 | hdrdir = $(includedir)/hidapi 7 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 8 | 9 | EXTRA_DIST = Makefile-manual 10 | -------------------------------------------------------------------------------- /src/hidapi/libusb/Makefile-manual: -------------------------------------------------------------------------------- 1 | 2 | 3 | OS=$(shell uname) 4 | 5 | ifeq ($(OS), Linux) 6 | FILE=Makefile.linux 7 | endif 8 | 9 | ifeq ($(OS), FreeBSD) 10 | FILE=Makefile.freebsd 11 | endif 12 | 13 | ifeq ($(FILE), ) 14 | all: 15 | $(error Your platform ${OS} is not supported by hidapi/libusb at this time.) 16 | endif 17 | 18 | include $(FILE) 19 | -------------------------------------------------------------------------------- /src/hidapi/libusb/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi $(CFLAGS_LIBUSB) 2 | 3 | if OS_LINUX 4 | lib_LTLIBRARIES = libhidapi-libusb.la 5 | libhidapi_libusb_la_SOURCES = hid.c 6 | libhidapi_libusb_la_LDFLAGS = $(LTLDFLAGS) $(PTHREAD_CFLAGS) 7 | libhidapi_libusb_la_LIBADD = $(LIBS_LIBUSB) 8 | endif 9 | 10 | if OS_FREEBSD 11 | lib_LTLIBRARIES = libhidapi.la 12 | libhidapi_la_SOURCES = hid.c 13 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 14 | libhidapi_la_LIBADD = $(LIBS_LIBUSB) 15 | endif 16 | 17 | if OS_KFREEBSD 18 | lib_LTLIBRARIES = libhidapi.la 19 | libhidapi_la_SOURCES = hid.c 20 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 21 | libhidapi_la_LIBADD = $(LIBS_LIBUSB) 22 | endif 23 | 24 | hdrdir = $(includedir)/hidapi 25 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 26 | 27 | EXTRA_DIST = Makefile-manual 28 | -------------------------------------------------------------------------------- /src/hidapi/libusb/Makefile.freebsd: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidtest libs 10 | 11 | libs: libhidapi.so 12 | 13 | CC ?= cc 14 | CFLAGS ?= -Wall -g -fPIC 15 | 16 | CXX ?= c++ 17 | CXXFLAGS ?= -Wall -g 18 | 19 | COBJS = hid.o 20 | CPPOBJS = ../hidtest/hidtest.o 21 | OBJS = $(COBJS) $(CPPOBJS) 22 | INCLUDES = -I../hidapi -I/usr/local/include 23 | LDFLAGS = -L/usr/local/lib 24 | LIBS = -lusb -liconv -pthread 25 | 26 | 27 | # Console Test Program 28 | hidtest: $(OBJS) 29 | $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS) 30 | 31 | # Shared Libs 32 | libhidapi.so: $(COBJS) 33 | $(CC) $(LDFLAGS) -shared -Wl,-soname,$@.0 $^ -o $@ $(LIBS) 34 | 35 | # Objects 36 | $(COBJS): %.o: %.c 37 | $(CC) $(CFLAGS) -c $(INCLUDES) $< -o $@ 38 | 39 | $(CPPOBJS): %.o: %.cpp 40 | $(CXX) $(CXXFLAGS) -c $(INCLUDES) $< -o $@ 41 | 42 | 43 | clean: 44 | rm -f $(OBJS) hidtest libhidapi.so ../hidtest/hidtest.o 45 | 46 | .PHONY: clean libs 47 | -------------------------------------------------------------------------------- /src/hidapi/libusb/Makefile.linux: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidtest-libusb libs 10 | 11 | libs: libhidapi-libusb.so 12 | 13 | CC ?= gcc 14 | CFLAGS ?= -Wall -g -fpic 15 | 16 | CXX ?= g++ 17 | CXXFLAGS ?= -Wall -g -fpic 18 | 19 | LDFLAGS ?= -Wall -g 20 | 21 | COBJS_LIBUSB = hid.o 22 | COBJS = $(COBJS_LIBUSB) 23 | CPPOBJS = ../hidtest/hidtest.o 24 | OBJS = $(COBJS) $(CPPOBJS) 25 | LIBS_USB = `pkg-config libusb-1.0 --libs` -lrt -lpthread 26 | LIBS = $(LIBS_USB) 27 | INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags` 28 | 29 | 30 | # Console Test Program 31 | hidtest-libusb: $(COBJS_LIBUSB) $(CPPOBJS) 32 | $(CXX) $(LDFLAGS) $^ $(LIBS_USB) -o $@ 33 | 34 | # Shared Libs 35 | libhidapi-libusb.so: $(COBJS_LIBUSB) 36 | $(CC) $(LDFLAGS) $(LIBS_USB) -shared -fpic -Wl,-soname,$@.0 $^ -o $@ 37 | 38 | # Objects 39 | $(COBJS): %.o: %.c 40 | $(CC) $(CFLAGS) -c $(INCLUDES) $< -o $@ 41 | 42 | $(CPPOBJS): %.o: %.cpp 43 | $(CXX) $(CXXFLAGS) -c $(INCLUDES) $< -o $@ 44 | 45 | 46 | clean: 47 | rm -f $(OBJS) hidtest-libusb libhidapi-libusb.so ../hidtest/hidtest.o 48 | 49 | .PHONY: clean libs 50 | -------------------------------------------------------------------------------- /src/hidapi/libusb/hidusb.cpp: -------------------------------------------------------------------------------- 1 | 2 | #define NAMESPACE HIDUSB 3 | #include "hid.c" 4 | -------------------------------------------------------------------------------- /src/hidapi/linux/Makefile-manual: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidtest-hidraw libs 10 | 11 | libs: libhidapi-hidraw.so 12 | 13 | CC ?= gcc 14 | CFLAGS ?= -Wall -g -fpic 15 | 16 | CXX ?= g++ 17 | CXXFLAGS ?= -Wall -g -fpic 18 | 19 | LDFLAGS ?= -Wall -g 20 | 21 | 22 | COBJS = hid.o 23 | CPPOBJS = ../hidtest/hidtest.o 24 | OBJS = $(COBJS) $(CPPOBJS) 25 | LIBS_UDEV = `pkg-config libudev --libs` -lrt 26 | LIBS = $(LIBS_UDEV) 27 | INCLUDES ?= -I../hidapi `pkg-config libusb-1.0 --cflags` 28 | 29 | 30 | # Console Test Program 31 | hidtest-hidraw: $(COBJS) $(CPPOBJS) 32 | $(CXX) $(LDFLAGS) $^ $(LIBS_UDEV) -o $@ 33 | 34 | # Shared Libs 35 | libhidapi-hidraw.so: $(COBJS) 36 | $(CC) $(LDFLAGS) $(LIBS_UDEV) -shared -fpic -Wl,-soname,$@.0 $^ -o $@ 37 | 38 | # Objects 39 | $(COBJS): %.o: %.c 40 | $(CC) $(CFLAGS) -c $(INCLUDES) $< -o $@ 41 | 42 | $(CPPOBJS): %.o: %.cpp 43 | $(CXX) $(CXXFLAGS) -c $(INCLUDES) $< -o $@ 44 | 45 | 46 | clean: 47 | rm -f $(OBJS) hidtest-hidraw libhidapi-hidraw.so ../hidtest/hidtest.o 48 | 49 | .PHONY: clean libs 50 | -------------------------------------------------------------------------------- /src/hidapi/linux/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libhidapi-hidraw.la 2 | libhidapi_hidraw_la_SOURCES = hid.c 3 | libhidapi_hidraw_la_LDFLAGS = $(LTLDFLAGS) 4 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ $(CFLAGS_HIDRAW) 5 | libhidapi_hidraw_la_LIBADD = $(LIBS_HIDRAW) 6 | 7 | hdrdir = $(includedir)/hidapi 8 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 9 | 10 | EXTRA_DIST = Makefile-manual 11 | -------------------------------------------------------------------------------- /src/hidapi/linux/hidraw.cpp: -------------------------------------------------------------------------------- 1 | 2 | #define NAMESPACE HIDRAW 3 | #include "hid.c" 4 | -------------------------------------------------------------------------------- /src/hidapi/mac/Makefile-manual: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-07-03 7 | ########################################### 8 | 9 | all: hidtest 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=hid.o 14 | CPPOBJS=../hidtest/hidtest.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS+=-I../hidapi -Wall -g -c 17 | LIBS=-framework IOKit -framework CoreFoundation 18 | 19 | 20 | hidtest: $(OBJS) 21 | g++ -Wall -g $^ $(LIBS) -o hidtest 22 | 23 | $(COBJS): %.o: %.c 24 | $(CC) $(CFLAGS) $< -o $@ 25 | 26 | $(CPPOBJS): %.o: %.cpp 27 | $(CXX) $(CFLAGS) $< -o $@ 28 | 29 | clean: 30 | rm -f *.o hidtest $(CPPOBJS) 31 | 32 | .PHONY: clean 33 | -------------------------------------------------------------------------------- /src/hidapi/mac/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libhidapi.la 2 | libhidapi_la_SOURCES = hid.c 3 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 4 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ 5 | 6 | hdrdir = $(includedir)/hidapi 7 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 8 | 9 | EXTRA_DIST = Makefile-manual 10 | -------------------------------------------------------------------------------- /src/hidapi/pc/hidapi-hidraw.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: hidapi-hidraw 7 | Description: C Library for USB/Bluetooth HID device access from Linux, Mac OS X, FreeBSD, and Windows. This is the hidraw implementation. 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lhidapi-hidraw 10 | Cflags: -I${includedir}/hidapi 11 | -------------------------------------------------------------------------------- /src/hidapi/pc/hidapi-libusb.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: hidapi-libusb 7 | Description: C Library for USB HID device access from Linux, Mac OS X, FreeBSD, and Windows. This is the libusb implementation. 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lhidapi-libusb 10 | Cflags: -I${includedir}/hidapi 11 | -------------------------------------------------------------------------------- /src/hidapi/pc/hidapi.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: hidapi 7 | Description: C Library for USB/Bluetooth HID device access from Linux, Mac OS X, FreeBSD, and Windows. 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lhidapi 10 | Cflags: -I${includedir}/hidapi 11 | -------------------------------------------------------------------------------- /src/hidapi/testgui/Makefile-manual: -------------------------------------------------------------------------------- 1 | 2 | 3 | OS=$(shell uname) 4 | 5 | ifeq ($(OS), Darwin) 6 | FILE=Makefile.mac 7 | endif 8 | 9 | ifneq (,$(findstring MINGW,$(OS))) 10 | FILE=Makefile.mingw 11 | endif 12 | 13 | ifeq ($(OS), Linux) 14 | FILE=Makefile.linux 15 | endif 16 | 17 | ifeq ($(OS), FreeBSD) 18 | FILE=Makefile.freebsd 19 | endif 20 | 21 | ifeq ($(FILE), ) 22 | all: 23 | $(error Your platform ${OS} is not supported at this time.) 24 | endif 25 | 26 | include $(FILE) 27 | -------------------------------------------------------------------------------- /src/hidapi/testgui/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ $(CFLAGS_TESTGUI) 3 | 4 | if OS_LINUX 5 | ## Linux 6 | bin_PROGRAMS = hidapi-hidraw-testgui hidapi-libusb-testgui 7 | 8 | hidapi_hidraw_testgui_SOURCES = test.cpp 9 | hidapi_hidraw_testgui_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la $(LIBS_TESTGUI) 10 | 11 | hidapi_libusb_testgui_SOURCES = test.cpp 12 | hidapi_libusb_testgui_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la $(LIBS_TESTGUI) 13 | else 14 | ## Other OS's 15 | bin_PROGRAMS = hidapi-testgui 16 | 17 | hidapi_testgui_SOURCES = test.cpp 18 | hidapi_testgui_LDADD = $(top_builddir)/$(backend)/libhidapi.la $(LIBS_TESTGUI) 19 | endif 20 | 21 | if OS_DARWIN 22 | hidapi_testgui_SOURCES = test.cpp mac_support_cocoa.m mac_support.h 23 | # Rules for copying the binary and its dependencies into the app bundle. 24 | TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT): hidapi-testgui$(EXEEXT) 25 | $(srcdir)/copy_to_bundle.sh 26 | 27 | all: all-am TestGUI.app/Contents/MacOS/hidapi-testgui$(EXEEXT) 28 | 29 | endif 30 | 31 | EXTRA_DIST = \ 32 | copy_to_bundle.sh \ 33 | Makefile-manual \ 34 | Makefile.freebsd \ 35 | Makefile.linux \ 36 | Makefile.mac \ 37 | Makefile.mingw \ 38 | TestGUI.app.in \ 39 | testgui.sln \ 40 | testgui.vcproj 41 | 42 | distclean-local: 43 | rm -rf TestGUI.app 44 | -------------------------------------------------------------------------------- /src/hidapi/testgui/Makefile.freebsd: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: testgui 10 | 11 | CC=cc 12 | CXX=c++ 13 | COBJS=../libusb/hid.o 14 | CPPOBJS=test.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS=-I../hidapi -I/usr/local/include `fox-config --cflags` -Wall -g -c 17 | LDFLAGS= -L/usr/local/lib 18 | LIBS= -lusb -liconv `fox-config --libs` -pthread 19 | 20 | 21 | testgui: $(OBJS) 22 | $(CXX) -Wall -g $^ $(LDFLAGS) -o $@ $(LIBS) 23 | 24 | $(COBJS): %.o: %.c 25 | $(CC) $(CFLAGS) $< -o $@ 26 | 27 | $(CPPOBJS): %.o: %.cpp 28 | $(CXX) $(CFLAGS) $< -o $@ 29 | 30 | clean: 31 | rm *.o testgui 32 | 33 | .PHONY: clean 34 | -------------------------------------------------------------------------------- /src/hidapi/testgui/Makefile.linux: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: testgui 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=../libusb/hid.o 14 | CPPOBJS=test.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags` `pkg-config libusb-1.0 --cflags` 17 | LIBS=-ludev -lrt -lpthread `fox-config --libs` `pkg-config libusb-1.0 --libs` 18 | 19 | 20 | testgui: $(OBJS) 21 | g++ -Wall -g $^ $(LIBS) -o testgui 22 | 23 | $(COBJS): %.o: %.c 24 | $(CC) $(CFLAGS) $< -o $@ 25 | 26 | $(CPPOBJS): %.o: %.cpp 27 | $(CXX) $(CFLAGS) $< -o $@ 28 | 29 | clean: 30 | rm *.o testgui 31 | 32 | .PHONY: clean 33 | -------------------------------------------------------------------------------- /src/hidapi/testgui/Makefile.mac: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-07-03 7 | ########################################### 8 | 9 | all: hidapi-testgui 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=../mac/hid.o 14 | CPPOBJS=test.o 15 | OBJCOBJS=mac_support_cocoa.o 16 | OBJS=$(COBJS) $(CPPOBJS) $(OBJCOBJS) 17 | CFLAGS=-I../hidapi -Wall -g -c `fox-config --cflags` 18 | LDFLAGS=-L/usr/X11R6/lib 19 | LIBS=`fox-config --libs` -framework IOKit -framework CoreFoundation -framework Cocoa 20 | 21 | 22 | hidapi-testgui: $(OBJS) TestGUI.app 23 | g++ -Wall -g $(OBJS) $(LIBS) $(LDFLAGS) -o hidapi-testgui 24 | ./copy_to_bundle.sh 25 | #cp TestGUI.app/Contents/MacOS/hidapi-testgui TestGUI.app/Contents/MacOS/tg 26 | #cp start.sh TestGUI.app/Contents/MacOS/hidapi-testgui 27 | 28 | $(COBJS): %.o: %.c 29 | $(CC) $(CFLAGS) $< -o $@ 30 | 31 | $(CPPOBJS): %.o: %.cpp 32 | $(CXX) $(CFLAGS) $< -o $@ 33 | 34 | $(OBJCOBJS): %.o: %.m 35 | $(CXX) $(CFLAGS) -x objective-c++ $< -o $@ 36 | 37 | TestGUI.app: TestGUI.app.in 38 | rm -Rf TestGUI.app 39 | mkdir -p TestGUI.app 40 | cp -R TestGUI.app.in/ TestGUI.app 41 | 42 | clean: 43 | rm -f $(OBJS) hidapi-testgui 44 | rm -Rf TestGUI.app 45 | 46 | .PHONY: clean 47 | -------------------------------------------------------------------------------- /src/hidapi/testgui/Makefile.mingw: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidapi-testgui 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=../windows/hid.o 14 | CPPOBJS=test.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS=-I../hidapi -I../../hidapi-externals/fox/include -g -c 17 | LIBS= -mwindows -lsetupapi -L../../hidapi-externals/fox/lib -Wl,-Bstatic -lFOX-1.6 -Wl,-Bdynamic -lgdi32 -Wl,--enable-auto-import -static-libgcc -static-libstdc++ -lkernel32 18 | 19 | 20 | hidapi-testgui: $(OBJS) 21 | g++ -g $^ $(LIBS) -o hidapi-testgui 22 | 23 | $(COBJS): %.o: %.c 24 | $(CC) $(CFLAGS) $< -o $@ 25 | 26 | $(CPPOBJS): %.o: %.cpp 27 | $(CXX) $(CFLAGS) $< -o $@ 28 | 29 | clean: 30 | rm -f *.o hidapi-testgui.exe 31 | 32 | .PHONY: clean 33 | -------------------------------------------------------------------------------- /src/hidapi/testgui/TestGUI.app.in/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | 9 | CFBundleExecutable 10 | hidapi-testgui 11 | CFBundleIconFile 12 | Signal11.icns 13 | CFBundleIdentifier 14 | us.signal11.hidtestgui 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | testgui 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | CSResourcesFileMapped 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/hidapi/testgui/TestGUI.app.in/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPL???? -------------------------------------------------------------------------------- /src/hidapi/testgui/TestGUI.app.in/Contents/Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/native-toolkit/libsdl/fa51fcb56b152ba6419b6decfef5dad48b075ac2/src/hidapi/testgui/TestGUI.app.in/Contents/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /src/hidapi/testgui/TestGUI.app.in/Contents/Resources/Signal11.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/native-toolkit/libsdl/fa51fcb56b152ba6419b6decfef5dad48b075ac2/src/hidapi/testgui/TestGUI.app.in/Contents/Resources/Signal11.icns -------------------------------------------------------------------------------- /src/hidapi/testgui/mac_support.h: -------------------------------------------------------------------------------- 1 | /******************************* 2 | Mac support for HID Test GUI 3 | 4 | Alan Ott 5 | Signal 11 Software 6 | 7 | *******************************/ 8 | 9 | #ifndef MAC_SUPPORT_H__ 10 | #define MAC_SUPPORT_H__ 11 | 12 | extern "C" { 13 | void init_apple_message_system(); 14 | void check_apple_events(); 15 | } 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /src/hidapi/testgui/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | xterm -e /Users/alan/work/hidapi/testgui/TestGUI.app/Contents/MacOS/tg 3 | -------------------------------------------------------------------------------- /src/hidapi/testgui/testgui.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual C++ Express 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testgui", "testgui.vcproj", "{08769AC3-785A-4DDC-BFC7-1775414B7AB7}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Debug|Win32.Build.0 = Debug|Win32 14 | {08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Release|Win32.ActiveCfg = Release|Win32 15 | {08769AC3-785A-4DDC-BFC7-1775414B7AB7}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /src/hidapi/windows/Makefile-manual: -------------------------------------------------------------------------------- 1 | 2 | 3 | OS=$(shell uname) 4 | 5 | ifneq (,$(findstring MINGW,$(OS))) 6 | FILE=Makefile.mingw 7 | endif 8 | 9 | ifeq ($(FILE), ) 10 | all: 11 | $(error Your platform ${OS} is not supported at this time.) 12 | endif 13 | 14 | include $(FILE) 15 | -------------------------------------------------------------------------------- /src/hidapi/windows/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libhidapi.la 2 | libhidapi_la_SOURCES = hid.c 3 | libhidapi_la_LDFLAGS = $(LTLDFLAGS) 4 | AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ 5 | libhidapi_la_LIBADD = $(LIBS) 6 | 7 | hdrdir = $(includedir)/hidapi 8 | hdr_HEADERS = $(top_srcdir)/hidapi/hidapi.h 9 | 10 | EXTRA_DIST = \ 11 | ddk_build \ 12 | hidapi.vcproj \ 13 | hidtest.vcproj \ 14 | Makefile-manual \ 15 | Makefile.mingw \ 16 | hidapi.sln 17 | -------------------------------------------------------------------------------- /src/hidapi/windows/Makefile.mingw: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Simple Makefile for HIDAPI test program 3 | # 4 | # Alan Ott 5 | # Signal 11 Software 6 | # 2010-06-01 7 | ########################################### 8 | 9 | all: hidtest libhidapi.dll 10 | 11 | CC=gcc 12 | CXX=g++ 13 | COBJS=hid.o 14 | CPPOBJS=../hidtest/hidtest.o 15 | OBJS=$(COBJS) $(CPPOBJS) 16 | CFLAGS=-I../hidapi -g -c 17 | LIBS= -lsetupapi 18 | DLL_LDFLAGS = -mwindows -lsetupapi 19 | 20 | hidtest: $(OBJS) 21 | g++ -g $^ $(LIBS) -o hidtest 22 | 23 | libhidapi.dll: $(OBJS) 24 | $(CC) -g $^ $(DLL_LDFLAGS) -o libhidapi.dll 25 | 26 | $(COBJS): %.o: %.c 27 | $(CC) $(CFLAGS) $< -o $@ 28 | 29 | $(CPPOBJS): %.o: %.cpp 30 | $(CXX) $(CFLAGS) $< -o $@ 31 | 32 | clean: 33 | rm *.o ../hidtest/*.o hidtest.exe 34 | 35 | .PHONY: clean 36 | -------------------------------------------------------------------------------- /src/hidapi/windows/ddk_build/hidapi.def: -------------------------------------------------------------------------------- 1 | LIBRARY hidapi 2 | EXPORTS 3 | hid_open @1 4 | hid_write @2 5 | hid_read @3 6 | hid_close @4 7 | hid_get_product_string @5 8 | hid_get_manufacturer_string @6 9 | hid_get_serial_number_string @7 10 | hid_get_indexed_string @8 11 | hid_error @9 12 | hid_set_nonblocking @10 13 | hid_enumerate @11 14 | hid_open_path @12 15 | hid_send_feature_report @13 16 | hid_get_feature_report @14 17 | -------------------------------------------------------------------------------- /src/hidapi/windows/ddk_build/makefile: -------------------------------------------------------------------------------- 1 | ############################################################################# 2 | # 3 | # Copyright (C) Microsoft Corporation 1995, 1996 4 | # All Rights Reserved. 5 | # 6 | # MAKEFILE for HID directory 7 | # 8 | ############################################################################# 9 | 10 | !IFDEF WIN95_BUILD 11 | 12 | ROOT=..\..\..\.. 13 | 14 | VERSIONLIST = debug retail 15 | IS_32 = TRUE 16 | IS_SDK = TRUE 17 | IS_PRIVATE = TRUE 18 | IS_SDK = TRUE 19 | IS_DDK = TRUE 20 | WIN32 = TRUE 21 | COMMONMKFILE = hidapi.mk 22 | 23 | !include $(ROOT)\dev\master.mk 24 | 25 | 26 | !ELSE 27 | 28 | # 29 | # DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source 30 | # file to this component. This file merely indirects to the real make file 31 | # that is shared by all the driver components of the Windows NT DDK 32 | # 33 | 34 | !IF DEFINED(_NT_TARGET_VERSION) 35 | ! IF $(_NT_TARGET_VERSION)>=0x501 36 | ! INCLUDE $(NTMAKEENV)\makefile.def 37 | ! ELSE 38 | # Only warn once per directory 39 | ! INCLUDE $(NTMAKEENV)\makefile.plt 40 | ! IF "$(BUILD_PASS)"=="PASS1" 41 | ! message BUILDMSG: Warning : The sample "$(MAKEDIR)" is not valid for the current OS target. 42 | ! ENDIF 43 | ! ENDIF 44 | !ELSE 45 | ! INCLUDE $(NTMAKEENV)\makefile.def 46 | !ENDIF 47 | 48 | !ENDIF 49 | 50 | -------------------------------------------------------------------------------- /src/hidapi/windows/ddk_build/sources: -------------------------------------------------------------------------------- 1 | TARGETNAME=hidapi 2 | TARGETTYPE=DYNLINK 3 | UMTYPE=console 4 | UMENTRY=main 5 | 6 | MSC_WARNING_LEVEL=/W3 /WX 7 | 8 | TARGETLIBS=$(SDK_LIB_PATH)\hid.lib \ 9 | $(SDK_LIB_PATH)\setupapi.lib \ 10 | $(SDK_LIB_PATH)\kernel32.lib \ 11 | $(SDK_LIB_PATH)\comdlg32.lib 12 | 13 | USE_MSVCRT=1 14 | 15 | INCLUDES= ..\..\hidapi 16 | SOURCES= ..\hid.c \ 17 | 18 | 19 | TARGET_DESTINATION=retail 20 | 21 | MUI=0 22 | MUI_COMMENT="HID Interface DLL" 23 | 24 | -------------------------------------------------------------------------------- /src/hidapi/windows/hidapi.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual C++ Express 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hidapi", "hidapi.vcproj", "{A107C21C-418A-4697-BB10-20C3AA60E2E4}" 5 | EndProject 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "hidtest", "hidtest.vcproj", "{23E9FF6A-49D1-4993-B2B5-BBB992C6C712}" 7 | ProjectSection(ProjectDependencies) = postProject 8 | {A107C21C-418A-4697-BB10-20C3AA60E2E4} = {A107C21C-418A-4697-BB10-20C3AA60E2E4} 9 | EndProjectSection 10 | EndProject 11 | Global 12 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 13 | Debug|Win32 = Debug|Win32 14 | Release|Win32 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {A107C21C-418A-4697-BB10-20C3AA60E2E4}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {A107C21C-418A-4697-BB10-20C3AA60E2E4}.Debug|Win32.Build.0 = Debug|Win32 19 | {A107C21C-418A-4697-BB10-20C3AA60E2E4}.Release|Win32.ActiveCfg = Release|Win32 20 | {A107C21C-418A-4697-BB10-20C3AA60E2E4}.Release|Win32.Build.0 = Release|Win32 21 | {23E9FF6A-49D1-4993-B2B5-BBB992C6C712}.Debug|Win32.ActiveCfg = Debug|Win32 22 | {23E9FF6A-49D1-4993-B2B5-BBB992C6C712}.Debug|Win32.Build.0 = Debug|Win32 23 | {23E9FF6A-49D1-4993-B2B5-BBB992C6C712}.Release|Win32.ActiveCfg = Release|Win32 24 | {23E9FF6A-49D1-4993-B2B5-BBB992C6C712}.Release|Win32.Build.0 = Release|Win32 25 | EndGlobalSection 26 | GlobalSection(SolutionProperties) = preSolution 27 | HideSolutionNode = FALSE 28 | EndGlobalSection 29 | EndGlobal 30 | -------------------------------------------------------------------------------- /src/libm/s_copysign.c: -------------------------------------------------------------------------------- 1 | /* 2 | * ==================================================== 3 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 4 | * 5 | * Developed at SunPro, a Sun Microsystems, Inc. business. 6 | * Permission to use, copy, modify, and distribute this 7 | * software is freely granted, provided that this notice 8 | * is preserved. 9 | * ==================================================== 10 | */ 11 | 12 | /* 13 | * copysign(double x, double y) 14 | * copysign(x,y) returns a value with the magnitude of x and 15 | * with the sign bit of y. 16 | */ 17 | 18 | #include "math_libm.h" 19 | #include "math_private.h" 20 | 21 | double copysign(double x, double y) 22 | { 23 | u_int32_t hx,hy; 24 | GET_HIGH_WORD(hx,x); 25 | GET_HIGH_WORD(hy,y); 26 | SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000)); 27 | return x; 28 | } 29 | libm_hidden_def(copysign) 30 | -------------------------------------------------------------------------------- /src/libm/s_fabs.c: -------------------------------------------------------------------------------- 1 | /* 2 | * ==================================================== 3 | * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 4 | * 5 | * Developed at SunPro, a Sun Microsystems, Inc. business. 6 | * Permission to use, copy, modify, and distribute this 7 | * software is freely granted, provided that this notice 8 | * is preserved. 9 | * ==================================================== 10 | */ 11 | 12 | /* 13 | * fabs(x) returns the absolute value of x. 14 | */ 15 | 16 | /*#include */ 17 | /* Prevent math.h from defining a colliding inline */ 18 | #undef __USE_EXTERN_INLINES 19 | #include "math_libm.h" 20 | #include "math_private.h" 21 | 22 | double fabs(double x) 23 | { 24 | u_int32_t high; 25 | GET_HIGH_WORD(high,x); 26 | SET_HIGH_WORD(x,high&0x7fffffff); 27 | return x; 28 | } 29 | libm_hidden_def(fabs) 30 | -------------------------------------------------------------------------------- /src/main/android/SDL_android_main.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_android_main.c, placed in the public domain by Sam Lantinga 3/13/14 3 | 4 | As of SDL 2.0.6 this file is no longer necessary. 5 | */ 6 | 7 | /* vi: set ts=4 sw=4 expandtab: */ 8 | -------------------------------------------------------------------------------- /src/main/dummy/SDL_dummy_main.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_dummy_main.c, placed in the public domain by Sam Lantinga 3/13/14 3 | */ 4 | #include "../../SDL_internal.h" 5 | 6 | /* Include the SDL main definition header */ 7 | #include "SDL_main.h" 8 | 9 | #ifdef main 10 | #undef main 11 | int 12 | main(int argc, char *argv[]) 13 | { 14 | return (SDL_main(argc, argv)); 15 | } 16 | #else 17 | /* Nothing to do on this platform */ 18 | int 19 | SDL_main_stub_symbol(void); 20 | 21 | int 22 | SDL_main_stub_symbol(void) 23 | { 24 | return 0; 25 | } 26 | #endif 27 | 28 | /* vi: set ts=4 sw=4 expandtab: */ 29 | -------------------------------------------------------------------------------- /src/main/haiku/SDL_BeApp.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | /* Handle the BeApp specific portions of the application */ 27 | 28 | /* Initialize the Be Application, if it's not already started */ 29 | extern int SDL_InitBeApp(void); 30 | 31 | /* Quit the Be Application, if there's nothing left to do */ 32 | extern void SDL_QuitBeApp(void); 33 | 34 | /* Be Application Signature*/ 35 | extern const char *signature; 36 | 37 | /* vi: set ts=4 sw=4 expandtab: */ 38 | 39 | #ifdef __cplusplus 40 | } 41 | #endif 42 | -------------------------------------------------------------------------------- /src/main/uikit/SDL_uikit_main.c: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_uiki_main.c, placed in the public domain by Sam Lantinga 3/18/2019 3 | */ 4 | #include "../../SDL_internal.h" 5 | 6 | /* Include the SDL main definition header */ 7 | #include "SDL_main.h" 8 | 9 | #ifdef main 10 | #undef main 11 | #endif 12 | 13 | int 14 | main(int argc, char *argv[]) 15 | { 16 | return SDL_UIKitRunApp(argc, argv, SDL_main); 17 | } 18 | 19 | /* vi: set ts=4 sw=4 expandtab: */ 20 | -------------------------------------------------------------------------------- /src/main/windows/version.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/native-toolkit/libsdl/fa51fcb56b152ba6419b6decfef5dad48b075ac2/src/main/windows/version.rc -------------------------------------------------------------------------------- /src/main/winrt/SDL2-WinRTResource_BlankCursor.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/native-toolkit/libsdl/fa51fcb56b152ba6419b6decfef5dad48b075ac2/src/main/winrt/SDL2-WinRTResource_BlankCursor.cur -------------------------------------------------------------------------------- /src/main/winrt/SDL2-WinRTResources.rc: -------------------------------------------------------------------------------- 1 | #include "winres.h" 2 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 3 | 5000 CURSOR "SDL2-WinRTResource_BlankCursor.cur" 4 | -------------------------------------------------------------------------------- /src/power/uikit/SDL_syspower.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_POWER_UIKIT 24 | 25 | #include "SDL_power.h" 26 | 27 | void SDL_UIKit_UpdateBatteryMonitoring(void); 28 | SDL_bool SDL_GetPowerInfo_UIKit(SDL_PowerState * state, int *seconds, int *percent); 29 | 30 | #endif /* SDL_POWER_UIKIT */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/render/direct3d/SDL_shaders_d3d.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | /* D3D9 shader implementation */ 24 | 25 | typedef enum { 26 | SHADER_YUV_JPEG, 27 | SHADER_YUV_BT601, 28 | SHADER_YUV_BT709, 29 | NUM_SHADERS 30 | } D3D9_Shader; 31 | 32 | extern HRESULT D3D9_CreatePixelShader(IDirect3DDevice9 *d3dDevice, D3D9_Shader shader, IDirect3DPixelShader9 **pixelShader); 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /src/render/direct3d11/SDL_render_winrt.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_RENDER_D3D11 && !SDL_RENDER_DISABLED 24 | 25 | #include "SDL_render.h" 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | void * D3D11_GetCoreWindowFromSDLRenderer(SDL_Renderer * renderer); 32 | DXGI_MODE_ROTATION D3D11_GetCurrentRotation(); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif /* SDL_VIDEO_RENDER_D3D11 && !SDL_RENDER_DISABLED */ 39 | 40 | /* vi: set ts=4 sw=4 expandtab: */ 41 | -------------------------------------------------------------------------------- /src/render/metal/build-metal-shaders.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -x 4 | set -e 5 | cd `dirname "$0"` 6 | 7 | generate_shaders() 8 | { 9 | fileplatform=$1 10 | compileplatform=$2 11 | sdkplatform=$3 12 | minversion=$4 13 | xcrun -sdk $sdkplatform metal -c -std=$compileplatform-metal1.1 -m$sdkplatform-version-min=$minversion -Wall -O3 -o ./sdl.air ./SDL_shaders_metal.metal || exit $? 14 | xcrun -sdk $sdkplatform metal-ar rc sdl.metalar sdl.air || exit $? 15 | xcrun -sdk $sdkplatform metallib -o sdl.metallib sdl.metalar || exit $? 16 | xxd -i sdl.metallib | perl -w -p -e 's/\Aunsigned /const unsigned /;' >./SDL_shaders_metal_$fileplatform.h 17 | rm -f sdl.air sdl.metalar sdl.metallib 18 | } 19 | 20 | generate_shaders osx osx macosx 10.11 21 | generate_shaders ios ios iphoneos 8.0 22 | generate_shaders tvos ios appletvos 9.0 23 | -------------------------------------------------------------------------------- /src/render/software/SDL_blendfillrect.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_blendfillrect_h_ 23 | #define SDL_blendfillrect_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | 28 | extern int SDL_BlendFillRect(SDL_Surface * dst, const SDL_Rect * rect, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 29 | extern int SDL_BlendFillRects(SDL_Surface * dst, const SDL_Rect * rects, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 30 | 31 | #endif /* SDL_blendfillrect_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/render/software/SDL_blendline.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_blendline_h_ 23 | #define SDL_blendline_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | 28 | extern int SDL_BlendLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 29 | extern int SDL_BlendLines(SDL_Surface * dst, const SDL_Point * points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 30 | 31 | #endif /* SDL_blendline_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/render/software/SDL_blendpoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_blendpoint_h_ 23 | #define SDL_blendpoint_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | 28 | extern int SDL_BlendPoint(SDL_Surface * dst, int x, int y, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 29 | extern int SDL_BlendPoints(SDL_Surface * dst, const SDL_Point * points, int count, SDL_BlendMode blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 30 | 31 | #endif /* SDL_blendpoint_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/render/software/SDL_drawline.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_drawline_h_ 23 | #define SDL_drawline_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | 28 | extern int SDL_DrawLine(SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color); 29 | extern int SDL_DrawLines(SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color); 30 | 31 | #endif /* SDL_drawline_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/render/software/SDL_drawpoint.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_drawpoint_h_ 23 | #define SDL_drawpoint_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | 28 | extern int SDL_DrawPoint(SDL_Surface * dst, int x, int y, Uint32 color); 29 | extern int SDL_DrawPoints(SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color); 30 | 31 | #endif /* SDL_drawpoint_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/render/software/SDL_render_sw_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_render_sw_c_h_ 23 | #define SDL_render_sw_c_h_ 24 | 25 | extern SDL_Renderer * SW_CreateRendererForSurface(SDL_Surface * surface); 26 | 27 | #endif /* SDL_render_sw_c_h_ */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /src/render/software/SDL_rotate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_rotate_h_ 23 | #define SDL_rotate_h_ 24 | 25 | #ifndef MIN 26 | #define MIN(a,b) (((a) < (b)) ? (a) : (b)) 27 | #endif 28 | 29 | extern SDL_Surface *SDLgfx_rotateSurface(SDL_Surface * src, double angle, int centerx, int centery, int smooth, int flipx, int flipy, int dstwidth, int dstheight, double cangle, double sangle); 30 | extern void SDLgfx_rotozoomSurfaceSizeTrig(int width, int height, double angle, int *dstwidth, int *dstheight, double *cangle, double *sangle); 31 | 32 | #endif /* SDL_rotate_h_ */ 33 | -------------------------------------------------------------------------------- /src/sensor/android/SDL_androidsensor.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL_config.h" 22 | 23 | /* The private structure used to keep track of a sensor */ 24 | struct sensor_hwdata 25 | { 26 | ASensorRef asensor; 27 | ASensorEventQueue *eventqueue; 28 | }; 29 | 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /src/sensor/coremotion/SDL_coremotionsensor.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL_config.h" 22 | 23 | /* The private structure used to keep track of a sensor */ 24 | struct sensor_hwdata 25 | { 26 | float data[3]; 27 | }; 28 | 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /src/sensor/dummy/SDL_dummysensor.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL_config.h" 22 | 23 | /* vi: set ts=4 sw=4 expandtab: */ 24 | -------------------------------------------------------------------------------- /src/test/SDL_test_font.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/native-toolkit/libsdl/fa51fcb56b152ba6419b6decfef5dad48b075ac2/src/test/SDL_test_font.c -------------------------------------------------------------------------------- /src/thread/generic/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | /* vi: set ts=4 sw=4 expandtab: */ 23 | -------------------------------------------------------------------------------- /src/thread/generic/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | /* Stub until we implement threads on this platform */ 24 | typedef int SYS_ThreadHandle; 25 | 26 | /* vi: set ts=4 sw=4 expandtab: */ 27 | -------------------------------------------------------------------------------- /src/thread/generic/SDL_systls.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | #include "../SDL_thread_c.h" 24 | 25 | 26 | SDL_TLSData * 27 | SDL_SYS_GetTLSData(void) 28 | { 29 | return SDL_Generic_GetTLSData(); 30 | } 31 | 32 | int 33 | SDL_SYS_SetTLSData(SDL_TLSData *data) 34 | { 35 | return SDL_Generic_SetTLSData(data); 36 | } 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /src/thread/psp/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | /* vi: set ts=4 sw=4 expandtab: */ 23 | -------------------------------------------------------------------------------- /src/thread/psp/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include 23 | 24 | typedef SceUID SYS_ThreadHandle; 25 | -------------------------------------------------------------------------------- /src/thread/pthread/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_mutex_c_h_ 24 | #define SDL_mutex_c_h_ 25 | 26 | struct SDL_mutex 27 | { 28 | pthread_mutex_t id; 29 | }; 30 | 31 | #endif /* SDL_mutex_c_h_ */ 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/thread/pthread/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #include 24 | 25 | typedef pthread_t SYS_ThreadHandle; 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /src/thread/stdcpp/SDL_sysmutex_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL_config.h" 22 | 23 | #include 24 | 25 | struct SDL_mutex 26 | { 27 | std::recursive_mutex cpp_mutex; 28 | }; 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /src/thread/stdcpp/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL_config.h" 22 | 23 | /* For a thread handle, use a void pointer to a std::thread */ 24 | typedef void * SYS_ThreadHandle; 25 | 26 | /* vi: set ts=4 sw=4 expandtab: */ 27 | -------------------------------------------------------------------------------- /src/thread/windows/SDL_systhread_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_systhread_c_h_ 24 | #define SDL_systhread_c_h_ 25 | 26 | #include "../../core/windows/SDL_windows.h" 27 | 28 | typedef HANDLE SYS_ThreadHandle; 29 | 30 | #endif /* SDL_systhread_c_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/timer/SDL_timer_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_timer_c_h_ 23 | #define SDL_timer_c_h_ 24 | 25 | #include "../SDL_internal.h" 26 | 27 | /* Useful functions and variables from SDL_timer.c */ 28 | #include "SDL_timer.h" 29 | 30 | #define ROUND_RESOLUTION(X) \ 31 | (((X+TIMER_RESOLUTION-1)/TIMER_RESOLUTION)*TIMER_RESOLUTION) 32 | 33 | extern void SDL_TicksInit(void); 34 | extern void SDL_TicksQuit(void); 35 | extern int SDL_TimerInit(void); 36 | extern void SDL_TimerQuit(void); 37 | 38 | #endif /* SDL_timer_c_h_ */ 39 | 40 | /* vi: set ts=4 sw=4 expandtab: */ 41 | -------------------------------------------------------------------------------- /src/video/SDL_RLEaccel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/native-toolkit/libsdl/fa51fcb56b152ba6419b6decfef5dad48b075ac2/src/video/SDL_RLEaccel.c -------------------------------------------------------------------------------- /src/video/SDL_RLEaccel_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_RLEaccel_c_h_ 23 | #define SDL_RLEaccel_c_h_ 24 | 25 | #include "../SDL_internal.h" 26 | 27 | /* Useful functions and variables from SDL_RLEaccel.c */ 28 | 29 | extern int SDL_RLESurface(SDL_Surface * surface); 30 | extern void SDL_UnRLESurface(SDL_Surface * surface, int recode); 31 | 32 | #endif /* SDL_RLEaccel_c_h_ */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /src/video/SDL_blit_auto.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT! This file is generated by sdlgenblit.pl */ 2 | /* 3 | Simple DirectMedia Layer 4 | Copyright (C) 1997-2020 Sam Lantinga 5 | 6 | This software is provided 'as-is', without any express or implied 7 | warranty. In no event will the authors be held liable for any damages 8 | arising from the use of this software. 9 | 10 | Permission is granted to anyone to use this software for any purpose, 11 | including commercial applications, and to alter it and redistribute it 12 | freely, subject to the following restrictions: 13 | 14 | 1. The origin of this software must not be misrepresented; you must not 15 | claim that you wrote the original software. If you use this software 16 | in a product, an acknowledgment in the product documentation would be 17 | appreciated but is not required. 18 | 2. Altered source versions must be plainly marked as such, and must not be 19 | misrepresented as being the original software. 20 | 3. This notice may not be removed or altered from any source distribution. 21 | */ 22 | #include "../SDL_internal.h" 23 | 24 | #if SDL_HAVE_BLIT_AUTO 25 | 26 | /* *INDENT-OFF* */ 27 | 28 | extern SDL_BlitFuncEntry SDL_GeneratedBlitFuncTable[]; 29 | 30 | /* *INDENT-ON* */ 31 | 32 | #endif /* SDL_HAVE_BLIT_AUTO */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /src/video/SDL_blit_copy.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_blit_copy_h_ 23 | #define SDL_blit_copy_h_ 24 | 25 | void SDL_BlitCopy(SDL_BlitInfo * info); 26 | 27 | #endif /* SDL_blit_copy_h_ */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /src/video/SDL_blit_slow.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_blit_slow_h_ 23 | #define SDL_blit_slow_h_ 24 | 25 | #include "../SDL_internal.h" 26 | 27 | extern void SDL_Blit_Slow(SDL_BlitInfo * info); 28 | 29 | #endif /* SDL_blit_slow_h_ */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /src/video/SDL_rect_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_rect_c_h_ 23 | #define SDL_rect_c_h_ 24 | 25 | #include "../SDL_internal.h" 26 | 27 | extern SDL_bool SDL_GetSpanEnclosingRect(int width, int height, int numrects, const SDL_Rect * rects, SDL_Rect *span); 28 | 29 | #endif /* SDL_rect_c_h_ */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /src/video/android/SDL_androidclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_androidclipboard_h_ 24 | #define SDL_androidclipboard_h_ 25 | 26 | extern int Android_SetClipboardText(_THIS, const char *text); 27 | extern char *Android_GetClipboardText(_THIS); 28 | extern SDL_bool Android_HasClipboardText(_THIS); 29 | 30 | #endif /* SDL_androidclipboard_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/video/android/SDL_androidevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #include "SDL_androidvideo.h" 24 | 25 | extern void Android_PumpEvents_Blocking(_THIS); 26 | extern void Android_PumpEvents_NonBlocking(_THIS); 27 | 28 | /* vi: set ts=4 sw=4 expandtab: */ 29 | -------------------------------------------------------------------------------- /src/video/android/SDL_androidgl.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_androidgl_h_ 24 | #define SDL_androidgl_h_ 25 | 26 | SDL_GLContext Android_GLES_CreateContext(_THIS, SDL_Window * window); 27 | int Android_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context); 28 | int Android_GLES_SwapWindow(_THIS, SDL_Window * window); 29 | int Android_GLES_LoadLibrary(_THIS, const char *path); 30 | 31 | 32 | #endif /* SDL_androidgl_h_ */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /src/video/android/SDL_androidmessagebox.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_ANDROID 24 | 25 | #include "SDL_messagebox.h" 26 | #include "SDL_androidmessagebox.h" 27 | #include "../../core/android/SDL_android.h" 28 | 29 | int 30 | Android_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) 31 | { 32 | return Android_JNI_ShowMessageBox(messageboxdata, buttonid); 33 | } 34 | 35 | #endif /* SDL_VIDEO_DRIVER_ANDROID */ 36 | 37 | /* vi: set ts=4 sw=4 expandtab: */ 38 | -------------------------------------------------------------------------------- /src/video/android/SDL_androidmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_ANDROID 24 | 25 | extern int Android_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 26 | 27 | #endif /* SDL_VIDEO_DRIVER_ANDROID */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /src/video/android/SDL_androidmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_androidmouse_h_ 23 | #define SDL_androidmouse_h_ 24 | 25 | #include "SDL_androidvideo.h" 26 | 27 | extern void Android_InitMouse(void); 28 | extern void Android_OnMouse(SDL_Window *window, int button, int action, float x, float y, SDL_bool relative); 29 | extern void Android_QuitMouse(void); 30 | 31 | #endif /* SDL_androidmouse_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/video/android/SDL_androidtouch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #include "SDL_androidvideo.h" 24 | 25 | extern void Android_InitTouch(void); 26 | extern void Android_QuitTouch(void); 27 | extern void Android_OnTouch(SDL_Window *window, int touch_device_id_in, int pointer_finger_id_in, int action, float x, float y, float p); 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /src/video/cocoa/SDL_cocoaclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_cocoaclipboard_h_ 24 | #define SDL_cocoaclipboard_h_ 25 | 26 | /* Forward declaration */ 27 | struct SDL_VideoData; 28 | 29 | extern int Cocoa_SetClipboardText(_THIS, const char *text); 30 | extern char *Cocoa_GetClipboardText(_THIS); 31 | extern SDL_bool Cocoa_HasClipboardText(_THIS); 32 | extern void Cocoa_CheckClipboardUpdate(struct SDL_VideoData * data); 33 | 34 | #endif /* SDL_cocoaclipboard_h_ */ 35 | 36 | /* vi: set ts=4 sw=4 expandtab: */ 37 | -------------------------------------------------------------------------------- /src/video/cocoa/SDL_cocoaevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_cocoaevents_h_ 24 | #define SDL_cocoaevents_h_ 25 | 26 | extern void Cocoa_RegisterApp(void); 27 | extern void Cocoa_PumpEvents(_THIS); 28 | extern void Cocoa_SuspendScreenSaver(_THIS); 29 | 30 | #endif /* SDL_cocoaevents_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/video/cocoa/SDL_cocoakeyboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_cocoakeyboard_h_ 24 | #define SDL_cocoakeyboard_h_ 25 | 26 | extern void Cocoa_InitKeyboard(_THIS); 27 | extern void Cocoa_HandleKeyEvent(_THIS, NSEvent * event); 28 | extern void Cocoa_QuitKeyboard(_THIS); 29 | 30 | extern void Cocoa_StartTextInput(_THIS); 31 | extern void Cocoa_StopTextInput(_THIS); 32 | extern void Cocoa_SetTextInputRect(_THIS, SDL_Rect *rect); 33 | 34 | #endif /* SDL_cocoakeyboard_h_ */ 35 | 36 | /* vi: set ts=4 sw=4 expandtab: */ 37 | -------------------------------------------------------------------------------- /src/video/cocoa/SDL_cocoamessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_COCOA 24 | 25 | extern int Cocoa_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 26 | 27 | #endif /* SDL_VIDEO_DRIVER_COCOA */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /src/video/cocoa/SDL_cocoamousetap.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_cocoamousetap_h_ 24 | #define SDL_cocoamousetap_h_ 25 | 26 | #include "SDL_cocoamouse.h" 27 | 28 | extern void Cocoa_InitMouseEventTap(SDL_MouseData *driverdata); 29 | extern void Cocoa_EnableMouseEventTap(SDL_MouseData *driverdata, SDL_bool enabled); 30 | extern void Cocoa_QuitMouseEventTap(SDL_MouseData *driverdata); 31 | 32 | #endif /* SDL_cocoamousetap_h_ */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /src/video/directfb/SDL_DirectFB_events.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_DirectFB_events_h_ 23 | #define SDL_DirectFB_events_h_ 24 | 25 | #include "../SDL_sysvideo.h" 26 | 27 | /* Functions to be exported */ 28 | extern void DirectFB_InitKeyboard(_THIS); 29 | extern void DirectFB_QuitKeyboard(_THIS); 30 | extern void DirectFB_PumpEventsWindow(_THIS); 31 | 32 | #endif /* SDL_DirectFB_events_h_ */ 33 | 34 | /* vi: set ts=4 sw=4 expandtab: */ 35 | -------------------------------------------------------------------------------- /src/video/directfb/SDL_DirectFB_render.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | 23 | /* SDL surface based renderer implementation */ 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /src/video/directfb/SDL_DirectFB_shape.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_DirectFB_shape_h_ 23 | #define SDL_DirectFB_shape_h_ 24 | 25 | #include 26 | 27 | #include "../SDL_sysvideo.h" 28 | #include "SDL_shape.h" 29 | 30 | typedef struct { 31 | IDirectFBSurface *surface; 32 | } SDL_ShapeData; 33 | 34 | extern SDL_WindowShaper* DirectFB_CreateShaper(SDL_Window* window); 35 | extern int DirectFB_ResizeWindowShape(SDL_Window* window); 36 | extern int DirectFB_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode); 37 | 38 | #endif /* SDL_DirectFB_shape_h_ */ 39 | -------------------------------------------------------------------------------- /src/video/dummy/SDL_nullevents.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_DUMMY 24 | 25 | /* Being a null driver, there's no event stream. We just define stubs for 26 | most of the API. */ 27 | 28 | #include "../../events/SDL_events_c.h" 29 | 30 | #include "SDL_nullvideo.h" 31 | #include "SDL_nullevents_c.h" 32 | 33 | void 34 | DUMMY_PumpEvents(_THIS) 35 | { 36 | /* do nothing. */ 37 | } 38 | 39 | #endif /* SDL_VIDEO_DRIVER_DUMMY */ 40 | 41 | /* vi: set ts=4 sw=4 expandtab: */ 42 | -------------------------------------------------------------------------------- /src/video/dummy/SDL_nullevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_nullevents_c_h_ 23 | #define SDL_nullevents_c_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | #include "SDL_nullvideo.h" 28 | 29 | extern void DUMMY_PumpEvents(_THIS); 30 | 31 | #endif /* SDL_nullevents_c_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/video/dummy/SDL_nullframebuffer_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_nullframebuffer_c_h_ 23 | #define SDL_nullframebuffer_c_h_ 24 | 25 | #include "../../SDL_internal.h" 26 | 27 | extern int SDL_DUMMY_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch); 28 | extern int SDL_DUMMY_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects); 29 | extern void SDL_DUMMY_DestroyWindowFramebuffer(_THIS, SDL_Window * window); 30 | 31 | #endif /* SDL_nullframebuffer_c_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/video/dummy/SDL_nullvideo.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_nullvideo_h_ 24 | #define SDL_nullvideo_h_ 25 | 26 | #include "../SDL_sysvideo.h" 27 | 28 | #endif /* SDL_nullvideo_h_ */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /src/video/emscripten/SDL_emscriptenevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | 23 | #ifndef SDL_emscriptenevents_h_ 24 | #define SDL_emscriptenevents_h_ 25 | 26 | #include "SDL_emscriptenvideo.h" 27 | 28 | extern void 29 | Emscripten_RegisterEventHandlers(SDL_WindowData *data); 30 | 31 | extern void 32 | Emscripten_UnregisterEventHandlers(SDL_WindowData *data); 33 | 34 | extern EM_BOOL 35 | Emscripten_HandleCanvasResize(int eventType, const void *reserved, void *userData); 36 | 37 | #endif /* SDL_emscriptenevents_h_ */ 38 | 39 | /* vi: set ts=4 sw=4 expandtab: */ 40 | 41 | -------------------------------------------------------------------------------- /src/video/emscripten/SDL_emscriptenmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | 23 | #ifndef SDL_emscriptenmouse_h_ 24 | #define SDL_emscriptenmouse_h_ 25 | 26 | #include "SDL_stdinc.h" 27 | 28 | typedef struct _Emscripten_CursorData 29 | { 30 | const char *system_cursor; 31 | SDL_bool is_custom; 32 | } Emscripten_CursorData; 33 | 34 | extern void 35 | Emscripten_InitMouse(); 36 | 37 | extern void 38 | Emscripten_FiniMouse(); 39 | 40 | #endif /* SDL_emscriptenmouse_h_ */ 41 | 42 | /* vi: set ts=4 sw=4 expandtab: */ 43 | -------------------------------------------------------------------------------- /src/video/haiku/SDL_bclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #ifndef SDL_BCLIPBOARD_H 25 | #define SDL_BCLIPBOARD_H 26 | 27 | extern int HAIKU_SetClipboardText(_THIS, const char *text); 28 | extern char *HAIKU_GetClipboardText(_THIS); 29 | extern SDL_bool HAIKU_HasClipboardText(_THIS); 30 | 31 | #endif 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/video/haiku/SDL_bevents.cc: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_HAIKU 24 | 25 | #include "SDL_bevents.h" 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | void HAIKU_PumpEvents(_THIS) { 32 | /* Since the event thread is its own thread, this isn't really necessary */ 33 | } 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | 39 | #endif /* SDL_VIDEO_DRIVER_HAIKU */ 40 | 41 | /* vi: set ts=4 sw=4 expandtab: */ 42 | -------------------------------------------------------------------------------- /src/video/haiku/SDL_bevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_BEVENTS_H 23 | #define SDL_BEVENTS_H 24 | 25 | #include "../SDL_sysvideo.h" 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | extern void HAIKU_PumpEvents(_THIS); 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | 37 | #endif 38 | 39 | /* vi: set ts=4 sw=4 expandtab: */ 40 | -------------------------------------------------------------------------------- /src/video/haiku/SDL_bkeyboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_BKEYBOARD_H 23 | #define SDL_BKEYBOARD_H 24 | 25 | #include 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | #include "../../../include/SDL_keyboard.h" 32 | 33 | extern void HAIKU_InitOSKeymap(void); 34 | extern SDL_Scancode HAIKU_GetScancodeFromBeKey(int32 bkey); 35 | extern int8 HAIKU_GetKeyState(int32 bkey); 36 | extern void HAIKU_SetKeyState(int32 bkey, int8 state); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif 43 | 44 | /* vi: set ts=4 sw=4 expandtab: */ 45 | -------------------------------------------------------------------------------- /src/video/haiku/SDL_bmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | Copyright (C) 2018-2019 EXL 5 | 6 | This software is provided 'as-is', without any express or implied 7 | warranty. In no event will the authors be held liable for any damages 8 | arising from the use of this software. 9 | 10 | Permission is granted to anyone to use this software for any purpose, 11 | including commercial applications, and to alter it and redistribute it 12 | freely, subject to the following restrictions: 13 | 14 | 1. The origin of this software must not be misrepresented; you must not 15 | claim that you wrote the original software. If you use this software 16 | in a product, an acknowledgment in the product documentation would be 17 | appreciated but is not required. 18 | 2. Altered source versions must be plainly marked as such, and must not be 19 | misrepresented as being the original software. 20 | 3. This notice may not be removed or altered from any source distribution. 21 | */ 22 | 23 | #ifndef SDL_BMESSAGEBOX_H 24 | #define SDL_BMESSAGEBOX_H 25 | 26 | #include "../../SDL_internal.h" 27 | 28 | #if SDL_VIDEO_DRIVER_HAIKU 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | extern int 35 | HAIKU_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif 40 | 41 | #endif /* SDL_VIDEO_DRIVER_HAIKU */ 42 | 43 | #endif 44 | 45 | /* vi: set ts=4 sw=4 expandtab: */ 46 | -------------------------------------------------------------------------------- /src/video/haiku/SDL_bvideo.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef BVIDEO_H 23 | #define BVIDEO_H 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | #include "../../main/haiku/SDL_BeApp.h" 30 | #include "../SDL_sysvideo.h" 31 | 32 | 33 | extern void HAIKU_VideoQuit(_THIS); 34 | extern int HAIKU_VideoInit(_THIS); 35 | extern void HAIKU_DeleteDevice(_THIS); 36 | extern int HAIKU_Available(void); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif 43 | 44 | /* vi: set ts=4 sw=4 expandtab: */ 45 | -------------------------------------------------------------------------------- /src/video/khronos/GLES2/gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* 5 | ** Copyright (c) 2017 The Khronos Group Inc. 6 | ** 7 | ** Licensed under the Apache License, Version 2.0 (the "License"); 8 | ** you may not use this file except in compliance with the License. 9 | ** You may obtain a copy of the License at 10 | ** 11 | ** http://www.apache.org/licenses/LICENSE-2.0 12 | ** 13 | ** Unless required by applicable law or agreed to in writing, software 14 | ** distributed under the License is distributed on an "AS IS" BASIS, 15 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | ** See the License for the specific language governing permissions and 17 | ** limitations under the License. 18 | */ 19 | 20 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 21 | * 22 | * Adopters may modify khrplatform.h and this file to suit their platform. 23 | * Please contribute modifications back to Khronos as pull requests on the 24 | * public github repository: 25 | * https://github.com/KhronosGroup/OpenGL-Registry 26 | */ 27 | 28 | #include 29 | 30 | #ifndef GL_APICALL 31 | #define GL_APICALL KHRONOS_APICALL 32 | #endif 33 | 34 | #ifndef GL_APIENTRY 35 | #define GL_APIENTRY KHRONOS_APIENTRY 36 | #endif 37 | 38 | #endif /* __gl2platform_h_ */ 39 | -------------------------------------------------------------------------------- /src/video/kmsdrm/SDL_kmsdrmevents.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #if SDL_VIDEO_DRIVER_KMSDRM 25 | 26 | #include "SDL_kmsdrmvideo.h" 27 | #include "SDL_kmsdrmevents.h" 28 | 29 | #ifdef SDL_INPUT_LINUXEV 30 | #include "../../core/linux/SDL_evdev.h" 31 | #endif 32 | 33 | void KMSDRM_PumpEvents(_THIS) 34 | { 35 | #ifdef SDL_INPUT_LINUXEV 36 | SDL_EVDEV_Poll(); 37 | #endif 38 | 39 | } 40 | 41 | #endif /* SDL_VIDEO_DRIVER_KMSDRM */ 42 | 43 | -------------------------------------------------------------------------------- /src/video/kmsdrm/SDL_kmsdrmevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #ifndef SDL_kmsdrmevents_h_ 25 | #define SDL_kmsdrmevents_h_ 26 | 27 | extern void KMSDRM_PumpEvents(_THIS); 28 | extern void KMSDRM_EventInit(_THIS); 29 | extern void KMSDRM_EventQuit(_THIS); 30 | 31 | #endif /* SDL_kmsdrmevents_h_ */ 32 | -------------------------------------------------------------------------------- /src/video/nacl/SDL_naclevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_naclevents_c_h_ 24 | #define SDL_naclevents_c_h_ 25 | 26 | #include "SDL_naclvideo.h" 27 | 28 | extern void NACL_PumpEvents(_THIS); 29 | 30 | #endif /* SDL_naclevents_c_h_ */ 31 | -------------------------------------------------------------------------------- /src/video/nacl/SDL_naclglue.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_NACL 24 | #endif /* SDL_VIDEO_DRIVER_NACL */ 25 | -------------------------------------------------------------------------------- /src/video/nacl/SDL_naclwindow.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_naclwindow_h_ 24 | #define SDL_naclwindow_h_ 25 | 26 | extern int NACL_CreateWindow(_THIS, SDL_Window * window); 27 | extern void NACL_SetWindowTitle(_THIS, SDL_Window * window); 28 | extern void NACL_DestroyWindow(_THIS, SDL_Window * window); 29 | 30 | #endif /* SDL_naclwindow_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/video/offscreen/SDL_offscreenevents.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #if SDL_VIDEO_DRIVER_OFFSCREEN 25 | 26 | /* Being a offscreen driver, there's no event stream. We just define stubs for 27 | most of the API. */ 28 | 29 | #include "../../events/SDL_events_c.h" 30 | 31 | #include "SDL_offscreenvideo.h" 32 | #include "SDL_offscreenevents_c.h" 33 | 34 | void 35 | OFFSCREEN_PumpEvents(_THIS) 36 | { 37 | /* do nothing. */ 38 | } 39 | 40 | #endif /* SDL_VIDEO_DRIVER_OFFSCREEN */ 41 | 42 | /* vi: set ts=4 sw=4 expandtab: */ 43 | -------------------------------------------------------------------------------- /src/video/offscreen/SDL_offscreenevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #include "SDL_offscreenvideo.h" 25 | 26 | extern void OFFSCREEN_PumpEvents(_THIS); 27 | 28 | /* vi: set ts=4 sw=4 expandtab: */ 29 | -------------------------------------------------------------------------------- /src/video/offscreen/SDL_offscreenframebuffer_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | extern int SDL_OFFSCREEN_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch); 25 | extern int SDL_OFFSCREEN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects); 26 | extern void SDL_OFFSCREEN_DestroyWindowFramebuffer(_THIS, SDL_Window * window); 27 | 28 | /* vi: set ts=4 sw=4 expandtab: */ 29 | -------------------------------------------------------------------------------- /src/video/offscreen/SDL_offscreenvideo.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #ifndef _SDL_offscreenvideo_h 25 | #define _SDL_offscreenvideo_h 26 | 27 | #include "../SDL_sysvideo.h" 28 | #include "../SDL_egl_c.h" 29 | 30 | #endif /* _SDL_offscreenvideo_h */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/video/pandora/SDL_pandora_events.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_PANDORA 24 | 25 | /* Being a null driver, there's no event stream. We just define stubs for 26 | most of the API. */ 27 | 28 | #include "../../events/SDL_events_c.h" 29 | 30 | void 31 | PND_PumpEvents(_THIS) 32 | { 33 | /* Not implemented. */ 34 | } 35 | 36 | #endif /* SDL_VIDEO_DRIVER_PANDORA */ 37 | 38 | /* vi: set ts=4 sw=4 expandtab: */ 39 | -------------------------------------------------------------------------------- /src/video/pandora/SDL_pandora_events.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | extern void PND_PumpEvents(_THIS); 24 | 25 | /* vi: set ts=4 sw=4 expandtab: */ 26 | -------------------------------------------------------------------------------- /src/video/psp/SDL_pspevents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "SDL_pspvideo.h" 23 | 24 | /* Variables and functions exported by SDL_sysevents.c to other parts 25 | of the native video subsystem (SDL_sysvideo.c) 26 | */ 27 | extern void PSP_InitOSKeymap(_THIS); 28 | extern void PSP_PumpEvents(_THIS); 29 | 30 | /* end of SDL_pspevents_c.h ... */ 31 | 32 | -------------------------------------------------------------------------------- /src/video/psp/SDL_pspmouse.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_PSP 24 | 25 | #include 26 | 27 | #include "SDL_error.h" 28 | #include "SDL_mouse.h" 29 | #include "../../events/SDL_events_c.h" 30 | 31 | #include "SDL_pspmouse_c.h" 32 | 33 | 34 | /* The implementation dependent data for the window manager cursor */ 35 | struct WMcursor { 36 | int unused; 37 | }; 38 | 39 | #endif /* SDL_VIDEO_DRIVER_PSP */ 40 | 41 | /* vi: set ts=4 sw=4 expandtab: */ 42 | -------------------------------------------------------------------------------- /src/video/psp/SDL_pspmouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "SDL_pspvideo.h" 23 | 24 | /* Functions to be exported */ 25 | -------------------------------------------------------------------------------- /src/video/raspberry/SDL_rpievents.c: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | 24 | #if SDL_VIDEO_DRIVER_RPI 25 | 26 | #include "../../events/SDL_sysevents.h" 27 | #include "../../events/SDL_events_c.h" 28 | #include "../../events/SDL_keyboard_c.h" 29 | #include "SDL_rpivideo.h" 30 | #include "SDL_rpievents_c.h" 31 | 32 | #ifdef SDL_INPUT_LINUXEV 33 | #include "../../core/linux/SDL_evdev.h" 34 | #endif 35 | 36 | void RPI_PumpEvents(_THIS) 37 | { 38 | #ifdef SDL_INPUT_LINUXEV 39 | SDL_EVDEV_Poll(); 40 | #endif 41 | 42 | } 43 | 44 | #endif /* SDL_VIDEO_DRIVER_RPI */ 45 | 46 | -------------------------------------------------------------------------------- /src/video/raspberry/SDL_rpievents_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_rpievents_c_h_ 23 | #define SDL_rpievents_c_h_ 24 | 25 | #include "SDL_rpivideo.h" 26 | 27 | void RPI_PumpEvents(_THIS); 28 | void RPI_EventInit(_THIS); 29 | void RPI_EventQuit(_THIS); 30 | 31 | #endif /* SDL_rpievents_c_h_ */ 32 | -------------------------------------------------------------------------------- /src/video/uikit/SDL_uikitclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #ifndef SDL_uikitclipboard_h_ 22 | #define SDL_uikitclipboard_h_ 23 | 24 | #include "../SDL_sysvideo.h" 25 | 26 | extern int UIKit_SetClipboardText(_THIS, const char *text); 27 | extern char *UIKit_GetClipboardText(_THIS); 28 | extern SDL_bool UIKit_HasClipboardText(_THIS); 29 | 30 | extern void UIKit_InitClipboard(_THIS); 31 | extern void UIKit_QuitClipboard(_THIS); 32 | 33 | #endif /* SDL_uikitclipboard_h_ */ 34 | 35 | /* vi: set ts=4 sw=4 expandtab: */ 36 | -------------------------------------------------------------------------------- /src/video/uikit/SDL_uikitevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #ifndef SDL_uikitevents_h_ 22 | #define SDL_uikitevents_h_ 23 | 24 | #include "../SDL_sysvideo.h" 25 | 26 | extern void UIKit_PumpEvents(_THIS); 27 | 28 | #endif /* SDL_uikitevents_h_ */ 29 | 30 | /* vi: set ts=4 sw=4 expandtab: */ 31 | -------------------------------------------------------------------------------- /src/video/uikit/SDL_uikitmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_UIKIT 24 | 25 | extern SDL_bool UIKit_ShowingMessageBox(void); 26 | 27 | extern int UIKit_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 28 | 29 | #endif /* SDL_VIDEO_DRIVER_UIKIT */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /src/video/wayland/SDL_waylandclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_waylandclipboard_h_ 24 | #define SDL_waylandclipboard_h_ 25 | 26 | extern int Wayland_SetClipboardText(_THIS, const char *text); 27 | extern char *Wayland_GetClipboardText(_THIS); 28 | extern SDL_bool Wayland_HasClipboardText(_THIS); 29 | 30 | #endif /* SDL_waylandclipboard_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/video/wayland/SDL_waylandmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #include "../../SDL_internal.h" 23 | #include "SDL_mouse.h" 24 | #include "SDL_waylandvideo.h" 25 | 26 | #if SDL_VIDEO_DRIVER_WAYLAND 27 | 28 | extern void Wayland_InitMouse(void); 29 | extern void Wayland_FiniMouse(void); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /src/video/windows/SDL_windowsclipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_windowsclipboard_h_ 24 | #define SDL_windowsclipboard_h_ 25 | 26 | /* Forward declaration */ 27 | struct SDL_VideoData; 28 | 29 | extern int WIN_SetClipboardText(_THIS, const char *text); 30 | extern char *WIN_GetClipboardText(_THIS); 31 | extern SDL_bool WIN_HasClipboardText(_THIS); 32 | extern void WIN_CheckClipboardUpdate(struct SDL_VideoData * data); 33 | 34 | #endif /* SDL_windowsclipboard_h_ */ 35 | 36 | /* vi: set ts=4 sw=4 expandtab: */ 37 | -------------------------------------------------------------------------------- /src/video/windows/SDL_windowsevents.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_windowsevents_h_ 24 | #define SDL_windowsevents_h_ 25 | 26 | extern LPTSTR SDL_Appname; 27 | extern Uint32 SDL_Appstyle; 28 | extern HINSTANCE SDL_Instance; 29 | 30 | extern LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, 31 | LPARAM lParam); 32 | extern void WIN_PumpEvents(_THIS); 33 | 34 | #endif /* SDL_windowsevents_h_ */ 35 | 36 | /* vi: set ts=4 sw=4 expandtab: */ 37 | -------------------------------------------------------------------------------- /src/video/windows/SDL_windowsframebuffer.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | extern int WIN_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch); 24 | extern int WIN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects); 25 | extern void WIN_DestroyWindowFramebuffer(_THIS, SDL_Window * window); 26 | 27 | /* vi: set ts=4 sw=4 expandtab: */ 28 | -------------------------------------------------------------------------------- /src/video/windows/SDL_windowsmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_WINDOWS 24 | 25 | extern int WIN_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 26 | 27 | #endif /* SDL_VIDEO_DRIVER_WINDOWS */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /src/video/windows/SDL_windowsmouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_windowsmouse_h_ 24 | #define SDL_windowsmouse_h_ 25 | 26 | extern HCURSOR SDL_cursor; 27 | 28 | extern void WIN_InitMouse(_THIS); 29 | extern void WIN_QuitMouse(_THIS); 30 | 31 | #endif /* SDL_windowsmouse_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/video/winrt/SDL_winrtgamebar_cpp.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL_config.h" 22 | 23 | #ifndef SDL_winrtgamebar_h_ 24 | #define SDL_winrtgamebar_h_ 25 | 26 | #ifdef __cplusplus 27 | /* These are exported as C++ functions, rather than C, to fix a compilation 28 | bug with MSVC 2013, for Windows 8.x builds. */ 29 | extern void WINRT_InitGameBar(_THIS); 30 | extern void WINRT_QuitGameBar(_THIS); 31 | #endif 32 | 33 | #endif /* SDL_winrtgamebar_h_ */ 34 | 35 | /* vi: set ts=4 sw=4 expandtab: */ 36 | -------------------------------------------------------------------------------- /src/video/winrt/SDL_winrtmessagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #if SDL_VIDEO_DRIVER_WINRT 24 | 25 | extern int WINRT_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 26 | 27 | #endif /* SDL_VIDEO_DRIVER_WINRT */ 28 | 29 | /* vi: set ts=4 sw=4 expandtab: */ 30 | -------------------------------------------------------------------------------- /src/video/winrt/SDL_winrtmouse_c.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "SDL_config.h" 22 | 23 | #ifndef SDL_winrtmouse_h_ 24 | #define SDL_winrtmouse_h_ 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | extern void WINRT_InitMouse(_THIS); 31 | extern void WINRT_QuitMouse(_THIS); 32 | extern SDL_bool WINRT_UsingRelativeMouseMode; 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif 37 | 38 | #endif /* SDL_winrtmouse_h_ */ 39 | 40 | /* vi: set ts=4 sw=4 expandtab: */ 41 | -------------------------------------------------------------------------------- /src/video/x11/SDL_x11clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_x11clipboard_h_ 24 | #define SDL_x11clipboard_h_ 25 | 26 | extern int X11_SetClipboardText(_THIS, const char *text); 27 | extern char *X11_GetClipboardText(_THIS); 28 | extern SDL_bool X11_HasClipboardText(_THIS); 29 | extern Atom X11_GetSDLCutBufferClipboardType(Display *display); 30 | 31 | #endif /* SDL_x11clipboard_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/video/x11/SDL_x11events.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_x11events_h_ 24 | #define SDL_x11events_h_ 25 | 26 | extern void X11_PumpEvents(_THIS); 27 | extern void X11_SuspendScreenSaver(_THIS); 28 | 29 | #endif /* SDL_x11events_h_ */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /src/video/x11/SDL_x11keyboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_x11keyboard_h_ 24 | #define SDL_x11keyboard_h_ 25 | 26 | extern int X11_InitKeyboard(_THIS); 27 | extern void X11_UpdateKeymap(_THIS); 28 | extern void X11_QuitKeyboard(_THIS); 29 | extern void X11_StartTextInput(_THIS); 30 | extern void X11_StopTextInput(_THIS); 31 | extern void X11_SetTextInputRect(_THIS, SDL_Rect *rect); 32 | extern KeySym X11_KeyCodeToSym(_THIS, KeyCode, unsigned char group); 33 | 34 | #endif /* SDL_x11keyboard_h_ */ 35 | 36 | /* vi: set ts=4 sw=4 expandtab: */ 37 | -------------------------------------------------------------------------------- /src/video/x11/SDL_x11messagebox.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_x11messagebox_h_ 23 | #define SDL_x11messagebox_h_ 24 | 25 | #if SDL_VIDEO_DRIVER_X11 26 | 27 | extern int X11_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid); 28 | 29 | #endif /* SDL_VIDEO_DRIVER_X11 */ 30 | 31 | #endif /* SDL_x11messagebox_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /src/video/x11/SDL_x11mouse.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_x11mouse_h_ 24 | #define SDL_x11mouse_h_ 25 | 26 | extern void X11_InitMouse(_THIS); 27 | extern void X11_QuitMouse(_THIS); 28 | 29 | #endif /* SDL_x11mouse_h_ */ 30 | 31 | /* vi: set ts=4 sw=4 expandtab: */ 32 | -------------------------------------------------------------------------------- /src/video/x11/SDL_x11touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | #include "../../SDL_internal.h" 22 | 23 | #ifndef SDL_x11touch_h_ 24 | #define SDL_x11touch_h_ 25 | 26 | extern void X11_InitTouch(_THIS); 27 | extern void X11_QuitTouch(_THIS); 28 | extern void X11_ResetTouch(_THIS); 29 | 30 | #endif /* SDL_x11touch_h_ */ 31 | 32 | /* vi: set ts=4 sw=4 expandtab: */ 33 | -------------------------------------------------------------------------------- /src/video/x11/imKStoUCS.h: -------------------------------------------------------------------------------- 1 | #ifndef _imKStoUCS_h 2 | #define _imKStoUCS_h 3 | 4 | /* 5 | Copyright (C) 2003-2006,2008 Jamey Sharp, Josh Triplett 6 | Copyright © 2009 Red Hat, Inc. 7 | Copyright 1990-1992,1999,2000,2004,2009,2010 Oracle and/or its affiliates. 8 | All rights reserved. 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a 11 | copy of this software and associated documentation files (the "Software"), 12 | to deal in the Software without restriction, including without limitation 13 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 14 | and/or sell copies of the Software, and to permit persons to whom the 15 | Software is furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice (including the next 18 | paragraph) shall be included in all copies or substantial portions of the 19 | Software. 20 | 21 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | DEALINGS IN THE SOFTWARE. 28 | */ 29 | 30 | extern unsigned int X11_KeySymToUcs4(KeySym keysym); 31 | 32 | #endif /* _imKStoUCS_h */ 33 | -------------------------------------------------------------------------------- /src/video/yuv2rgb/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016, Adrien Descamps 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of yuv2rgb nor the names of its 15 | contributors may be used to endorse or promote products derived from 16 | this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | --------------------------------------------------------------------------------