|
|
|
@ -405,86 +405,86 @@ GLFWbool _glfwConnectWayland(int platformID, _GLFWplatform* platform) |
|
|
|
|
{ |
|
|
|
|
const _GLFWplatform wayland = |
|
|
|
|
{ |
|
|
|
|
GLFW_PLATFORM_WAYLAND, |
|
|
|
|
_glfwInitWayland, |
|
|
|
|
_glfwTerminateWayland, |
|
|
|
|
_glfwGetCursorPosWayland, |
|
|
|
|
_glfwSetCursorPosWayland, |
|
|
|
|
_glfwSetCursorModeWayland, |
|
|
|
|
_glfwSetRawMouseMotionWayland, |
|
|
|
|
_glfwRawMouseMotionSupportedWayland, |
|
|
|
|
_glfwCreateCursorWayland, |
|
|
|
|
_glfwCreateStandardCursorWayland, |
|
|
|
|
_glfwDestroyCursorWayland, |
|
|
|
|
_glfwSetCursorWayland, |
|
|
|
|
_glfwGetScancodeNameWayland, |
|
|
|
|
_glfwGetKeyScancodeWayland, |
|
|
|
|
_glfwSetClipboardStringWayland, |
|
|
|
|
_glfwGetClipboardStringWayland, |
|
|
|
|
.platformID = GLFW_PLATFORM_WAYLAND, |
|
|
|
|
.init = _glfwInitWayland, |
|
|
|
|
.terminate = _glfwTerminateWayland, |
|
|
|
|
.getCursorPos = _glfwGetCursorPosWayland, |
|
|
|
|
.setCursorPos = _glfwSetCursorPosWayland, |
|
|
|
|
.setCursorMode = _glfwSetCursorModeWayland, |
|
|
|
|
.setRawMouseMotion = _glfwSetRawMouseMotionWayland, |
|
|
|
|
.rawMouseMotionSupported = _glfwRawMouseMotionSupportedWayland, |
|
|
|
|
.createCursor = _glfwCreateCursorWayland, |
|
|
|
|
.createStandardCursor = _glfwCreateStandardCursorWayland, |
|
|
|
|
.destroyCursor = _glfwDestroyCursorWayland, |
|
|
|
|
.setCursor = _glfwSetCursorWayland, |
|
|
|
|
.getScancodeName = _glfwGetScancodeNameWayland, |
|
|
|
|
.getKeyScancode = _glfwGetKeyScancodeWayland, |
|
|
|
|
.setClipboardString = _glfwSetClipboardStringWayland, |
|
|
|
|
.getClipboardString = _glfwGetClipboardStringWayland, |
|
|
|
|
#if defined(GLFW_BUILD_LINUX_JOYSTICK) |
|
|
|
|
_glfwInitJoysticksLinux, |
|
|
|
|
_glfwTerminateJoysticksLinux, |
|
|
|
|
_glfwPollJoystickLinux, |
|
|
|
|
_glfwGetMappingNameLinux, |
|
|
|
|
_glfwUpdateGamepadGUIDLinux, |
|
|
|
|
.initJoysticks = _glfwInitJoysticksLinux, |
|
|
|
|
.terminateJoysticks = _glfwTerminateJoysticksLinux, |
|
|
|
|
.pollJoystick = _glfwPollJoystickLinux, |
|
|
|
|
.getMappingName = _glfwGetMappingNameLinux, |
|
|
|
|
.updateGamepadGUID = _glfwUpdateGamepadGUIDLinux, |
|
|
|
|
#else |
|
|
|
|
_glfwInitJoysticksNull, |
|
|
|
|
_glfwTerminateJoysticksNull, |
|
|
|
|
_glfwPollJoystickNull, |
|
|
|
|
_glfwGetMappingNameNull, |
|
|
|
|
_glfwUpdateGamepadGUIDNull, |
|
|
|
|
.initJoysticks = _glfwInitJoysticksNull, |
|
|
|
|
.terminateJoysticks = _glfwTerminateJoysticksNull, |
|
|
|
|
.pollJoystick = _glfwPollJoystickNull, |
|
|
|
|
.getMappingName = _glfwGetMappingNameNull, |
|
|
|
|
.updateGamepadGUID = _glfwUpdateGamepadGUIDNull, |
|
|
|
|
#endif |
|
|
|
|
_glfwFreeMonitorWayland, |
|
|
|
|
_glfwGetMonitorPosWayland, |
|
|
|
|
_glfwGetMonitorContentScaleWayland, |
|
|
|
|
_glfwGetMonitorWorkareaWayland, |
|
|
|
|
_glfwGetVideoModesWayland, |
|
|
|
|
_glfwGetVideoModeWayland, |
|
|
|
|
_glfwGetGammaRampWayland, |
|
|
|
|
_glfwSetGammaRampWayland, |
|
|
|
|
_glfwCreateWindowWayland, |
|
|
|
|
_glfwDestroyWindowWayland, |
|
|
|
|
_glfwSetWindowTitleWayland, |
|
|
|
|
_glfwSetWindowIconWayland, |
|
|
|
|
_glfwGetWindowPosWayland, |
|
|
|
|
_glfwSetWindowPosWayland, |
|
|
|
|
_glfwGetWindowSizeWayland, |
|
|
|
|
_glfwSetWindowSizeWayland, |
|
|
|
|
_glfwSetWindowSizeLimitsWayland, |
|
|
|
|
_glfwSetWindowAspectRatioWayland, |
|
|
|
|
_glfwGetFramebufferSizeWayland, |
|
|
|
|
_glfwGetWindowFrameSizeWayland, |
|
|
|
|
_glfwGetWindowContentScaleWayland, |
|
|
|
|
_glfwIconifyWindowWayland, |
|
|
|
|
_glfwRestoreWindowWayland, |
|
|
|
|
_glfwMaximizeWindowWayland, |
|
|
|
|
_glfwShowWindowWayland, |
|
|
|
|
_glfwHideWindowWayland, |
|
|
|
|
_glfwRequestWindowAttentionWayland, |
|
|
|
|
_glfwFocusWindowWayland, |
|
|
|
|
_glfwSetWindowMonitorWayland, |
|
|
|
|
_glfwWindowFocusedWayland, |
|
|
|
|
_glfwWindowIconifiedWayland, |
|
|
|
|
_glfwWindowVisibleWayland, |
|
|
|
|
_glfwWindowMaximizedWayland, |
|
|
|
|
_glfwWindowHoveredWayland, |
|
|
|
|
_glfwFramebufferTransparentWayland, |
|
|
|
|
_glfwGetWindowOpacityWayland, |
|
|
|
|
_glfwSetWindowResizableWayland, |
|
|
|
|
_glfwSetWindowDecoratedWayland, |
|
|
|
|
_glfwSetWindowFloatingWayland, |
|
|
|
|
_glfwSetWindowOpacityWayland, |
|
|
|
|
_glfwSetWindowMousePassthroughWayland, |
|
|
|
|
_glfwPollEventsWayland, |
|
|
|
|
_glfwWaitEventsWayland, |
|
|
|
|
_glfwWaitEventsTimeoutWayland, |
|
|
|
|
_glfwPostEmptyEventWayland, |
|
|
|
|
_glfwGetEGLPlatformWayland, |
|
|
|
|
_glfwGetEGLNativeDisplayWayland, |
|
|
|
|
_glfwGetEGLNativeWindowWayland, |
|
|
|
|
_glfwGetRequiredInstanceExtensionsWayland, |
|
|
|
|
_glfwGetPhysicalDevicePresentationSupportWayland, |
|
|
|
|
_glfwCreateWindowSurfaceWayland, |
|
|
|
|
.freeMonitor = _glfwFreeMonitorWayland, |
|
|
|
|
.getMonitorPos = _glfwGetMonitorPosWayland, |
|
|
|
|
.getMonitorContentScale = _glfwGetMonitorContentScaleWayland, |
|
|
|
|
.getMonitorWorkarea = _glfwGetMonitorWorkareaWayland, |
|
|
|
|
.getVideoModes = _glfwGetVideoModesWayland, |
|
|
|
|
.getVideoMode = _glfwGetVideoModeWayland, |
|
|
|
|
.getGammaRamp = _glfwGetGammaRampWayland, |
|
|
|
|
.setGammaRamp = _glfwSetGammaRampWayland, |
|
|
|
|
.createWindow = _glfwCreateWindowWayland, |
|
|
|
|
.destroyWindow = _glfwDestroyWindowWayland, |
|
|
|
|
.setWindowTitle = _glfwSetWindowTitleWayland, |
|
|
|
|
.setWindowIcon = _glfwSetWindowIconWayland, |
|
|
|
|
.getWindowPos = _glfwGetWindowPosWayland, |
|
|
|
|
.setWindowPos = _glfwSetWindowPosWayland, |
|
|
|
|
.getWindowSize = _glfwGetWindowSizeWayland, |
|
|
|
|
.setWindowSize = _glfwSetWindowSizeWayland, |
|
|
|
|
.setWindowSizeLimits = _glfwSetWindowSizeLimitsWayland, |
|
|
|
|
.setWindowAspectRatio = _glfwSetWindowAspectRatioWayland, |
|
|
|
|
.getFramebufferSize = _glfwGetFramebufferSizeWayland, |
|
|
|
|
.getWindowFrameSize = _glfwGetWindowFrameSizeWayland, |
|
|
|
|
.getWindowContentScale = _glfwGetWindowContentScaleWayland, |
|
|
|
|
.iconifyWindow = _glfwIconifyWindowWayland, |
|
|
|
|
.restoreWindow = _glfwRestoreWindowWayland, |
|
|
|
|
.maximizeWindow = _glfwMaximizeWindowWayland, |
|
|
|
|
.showWindow = _glfwShowWindowWayland, |
|
|
|
|
.hideWindow = _glfwHideWindowWayland, |
|
|
|
|
.requestWindowAttention = _glfwRequestWindowAttentionWayland, |
|
|
|
|
.focusWindow = _glfwFocusWindowWayland, |
|
|
|
|
.setWindowMonitor = _glfwSetWindowMonitorWayland, |
|
|
|
|
.windowFocused = _glfwWindowFocusedWayland, |
|
|
|
|
.windowIconified = _glfwWindowIconifiedWayland, |
|
|
|
|
.windowVisible = _glfwWindowVisibleWayland, |
|
|
|
|
.windowMaximized = _glfwWindowMaximizedWayland, |
|
|
|
|
.windowHovered = _glfwWindowHoveredWayland, |
|
|
|
|
.framebufferTransparent = _glfwFramebufferTransparentWayland, |
|
|
|
|
.getWindowOpacity = _glfwGetWindowOpacityWayland, |
|
|
|
|
.setWindowResizable = _glfwSetWindowResizableWayland, |
|
|
|
|
.setWindowDecorated = _glfwSetWindowDecoratedWayland, |
|
|
|
|
.setWindowFloating = _glfwSetWindowFloatingWayland, |
|
|
|
|
.setWindowOpacity = _glfwSetWindowOpacityWayland, |
|
|
|
|
.setWindowMousePassthrough = _glfwSetWindowMousePassthroughWayland, |
|
|
|
|
.pollEvents = _glfwPollEventsWayland, |
|
|
|
|
.waitEvents = _glfwWaitEventsWayland, |
|
|
|
|
.waitEventsTimeout = _glfwWaitEventsTimeoutWayland, |
|
|
|
|
.postEmptyEvent = _glfwPostEmptyEventWayland, |
|
|
|
|
.getEGLPlatform = _glfwGetEGLPlatformWayland, |
|
|
|
|
.getEGLNativeDisplay = _glfwGetEGLNativeDisplayWayland, |
|
|
|
|
.getEGLNativeWindow = _glfwGetEGLNativeWindowWayland, |
|
|
|
|
.getRequiredInstanceExtensions = _glfwGetRequiredInstanceExtensionsWayland, |
|
|
|
|
.getPhysicalDevicePresentationSupport = _glfwGetPhysicalDevicePresentationSupportWayland, |
|
|
|
|
.createWindowSurface = _glfwCreateWindowSurfaceWayland |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
void* module = _glfwPlatformLoadModule("libwayland-client.so.0"); |
|
|
|
|