initial commit

This commit is contained in:
NeilClack
2026-08-07 14:51:41 -05:00
commit 9251b3a196
604 changed files with 464448 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package sdl
/*
#include "sdl_wrapper.h"
#if !(SDL_VERSION_ATLEAST(2,0,9))
#if defined(WARN_OUTDATED)
#pragma message("SDL_IsTablet is not supported before SDL 2.0.9")
#endif
static inline SDL_bool SDL_IsTablet()
{
return SDL_FALSE;
}
#endif
*/
import "C"
// IsTablet returns true if the current device is a tablet
// TODO: (https://wiki.libsdl.org/SDL_IsTablet)
func IsTablet() bool {
return C.SDL_IsTablet() == C.SDL_TRUE
}