#include "internal.h"
#include "mappings.h"
#include <assert.h>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#define _GLFW_STICK …
#define _GLFW_JOYSTICK_AXIS …
#define _GLFW_JOYSTICK_BUTTON …
#define _GLFW_JOYSTICK_HATBIT …
#define GLFW_MOD_MASK …
static GLFWbool initJoysticks(void)
{ … }
static _GLFWmapping* findMapping(const char* guid)
{ … }
static GLFWbool isValidElementForJoystick(const _GLFWmapelement* e,
const _GLFWjoystick* js)
{ … }
static _GLFWmapping* findValidMapping(const _GLFWjoystick* js)
{ … }
static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string)
{ … }
void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods)
{ … }
void _glfwInputChar(_GLFWwindow* window, uint32_t codepoint, int mods, GLFWbool plain)
{ … }
void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset)
{ … }
void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods)
{ … }
void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos)
{ … }
void _glfwInputCursorEnter(_GLFWwindow* window, GLFWbool entered)
{ … }
void _glfwInputDrop(_GLFWwindow* window, int count, const char** paths)
{ … }
void _glfwInputJoystick(_GLFWjoystick* js, int event)
{ … }
void _glfwInputJoystickAxis(_GLFWjoystick* js, int axis, float value)
{ … }
void _glfwInputJoystickButton(_GLFWjoystick* js, int button, char value)
{ … }
void _glfwInputJoystickHat(_GLFWjoystick* js, int hat, char value)
{ … }
void _glfwInitGamepadMappings(void)
{ … }
_GLFWjoystick* _glfwAllocJoystick(const char* name,
const char* guid,
int axisCount,
int buttonCount,
int hatCount)
{ … }
void _glfwFreeJoystick(_GLFWjoystick* js)
{ … }
void _glfwCenterCursorInContentArea(_GLFWwindow* window)
{ … }
GLFWAPI int glfwGetInputMode(GLFWwindow* handle, int mode)
{ … }
GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value)
{ … }
GLFWAPI int glfwRawMouseMotionSupported(void)
{ … }
GLFWAPI const char* glfwGetKeyName(int key, int scancode)
{ … }
GLFWAPI int glfwGetKeyScancode(int key)
{ … }
GLFWAPI int glfwGetKey(GLFWwindow* handle, int key)
{ … }
GLFWAPI int glfwGetMouseButton(GLFWwindow* handle, int button)
{ … }
GLFWAPI void glfwGetCursorPos(GLFWwindow* handle, double* xpos, double* ypos)
{ … }
GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos)
{ … }
GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot)
{ … }
GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape)
{ … }
GLFWAPI void glfwDestroyCursor(GLFWcursor* handle)
{ … }
GLFWAPI void glfwSetCursor(GLFWwindow* windowHandle, GLFWcursor* cursorHandle)
{ … }
GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* handle, GLFWkeyfun cbfun)
{ … }
GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* handle, GLFWcharfun cbfun)
{ … }
GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* handle, GLFWcharmodsfun cbfun)
{ … }
GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* handle,
GLFWmousebuttonfun cbfun)
{ … }
GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* handle,
GLFWcursorposfun cbfun)
{ … }
GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* handle,
GLFWcursorenterfun cbfun)
{ … }
GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* handle,
GLFWscrollfun cbfun)
{ … }
GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* handle, GLFWdropfun cbfun)
{ … }
GLFWAPI int glfwJoystickPresent(int jid)
{ … }
GLFWAPI const float* glfwGetJoystickAxes(int jid, int* count)
{ … }
GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count)
{ … }
GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count)
{ … }
GLFWAPI const char* glfwGetJoystickName(int jid)
{ … }
GLFWAPI const char* glfwGetJoystickGUID(int jid)
{ … }
GLFWAPI void glfwSetJoystickUserPointer(int jid, void* pointer)
{ … }
GLFWAPI void* glfwGetJoystickUserPointer(int jid)
{ … }
GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun cbfun)
{ … }
GLFWAPI int glfwUpdateGamepadMappings(const char* string)
{ … }
GLFWAPI int glfwJoystickIsGamepad(int jid)
{ … }
GLFWAPI const char* glfwGetGamepadName(int jid)
{ … }
GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state)
{ … }
GLFWAPI void glfwSetClipboardString(GLFWwindow* handle, const char* string)
{ … }
GLFWAPI const char* glfwGetClipboardString(GLFWwindow* handle)
{ … }
GLFWAPI double glfwGetTime(void)
{ … }
GLFWAPI void glfwSetTime(double time)
{ … }
GLFWAPI uint64_t glfwGetTimerValue(void)
{ … }
GLFWAPI uint64_t glfwGetTimerFrequency(void)
{ … }