@@ -376,24 +376,24 @@ declare module "glfw-raub" {
376376 *
377377 * @see https://www.glfw.org/docs/latest/group__keys.html
378378 */
379- getKey ( ) : number ;
379+ getKey ( key : number ) : number ;
380380
381381 /**
382382 * Get mouse button state (GLFW_PRESS/GLFW_RELEASE).
383383 *
384384 * @see https://www.glfw.org/docs/latest/group__buttons.html
385385 */
386- getMouseButton ( ) : number ;
386+ getMouseButton ( button : number ) : number ;
387387
388388 /**
389389 * Get window attribute.
390390 *
391391 * @see https://www.glfw.org/docs/latest/window_guide.html#window_attribs
392392 */
393- getWindowAttrib ( ) : number ;
393+ getWindowAttrib ( attrib : number ) : number ;
394394
395395 /** Set input mode option. */
396- setInputMode ( mode : number ) : void ;
396+ setInputMode ( mode : number , value : number ) : void ;
397397
398398 /** Swaps the front and back buffers of the window. */
399399 swapBuffers ( ) : void ;
@@ -594,7 +594,7 @@ declare module "glfw-raub" {
594594 const showConsole : TCbVoid ;
595595
596596 /** Draws a test scene, used in examples here. */
597- const testScene : TCbVoid ;
597+ const testScene : ( w : number , h : number , z : number ) => void ;
598598
599599 /** Draws a test scene, that reacts to a joystick. */
600600 const testJoystick : TCbVoid ;
@@ -675,8 +675,8 @@ declare module "glfw-raub" {
675675 const showWindow : TFnWindow ;
676676 const windowShouldClose : ( window : TWindowPtr ) => number ;
677677 const setWindowShouldClose : ( window : TWindowPtr , shouldClose : number ) => void ;
678- const getWindowAttrib : ( window : TWindowPtr ) => number ;
679- const setWindowAttrib : ( window : TWindowPtr , value : number ) => void ;
678+ const getWindowAttrib : ( window : TWindowPtr , attrib : number ) => number ;
679+ const setWindowAttrib : ( window : TWindowPtr , attrib : number , value : number ) => void ;
680680 const setInputMode : ( window : TWindowPtr , mode : number , value : number ) => void ;
681681 const getInputMode : ( window : TWindowPtr , mode : number ) => number ;
682682 const pollEvents : TCbVoid ;
@@ -946,6 +946,10 @@ declare module "glfw-raub" {
946946 const PLATFORM_ERROR : number ;
947947 const FORMAT_UNAVAILABLE : number ;
948948 const NO_WINDOW_CONTEXT : number ;
949+ const CURSOR_UNAVAILABLE : number ;
950+ const FEATURE_UNAVAILABLE : number ;
951+ const FEATURE_UNIMPLEMENTED : number ;
952+ const PLATFORM_UNAVAILABLE : number ;
949953 const FOCUSED : number ;
950954 const ICONIFIED : number ;
951955 const RESIZABLE : number ;
@@ -958,6 +962,9 @@ declare module "glfw-raub" {
958962 const TRANSPARENT_FRAMEBUFFER : number ;
959963 const HOVERED : number ;
960964 const FOCUS_ON_SHOW : number ;
965+ const MOUSE_PASSTHROUGH : number ;
966+ const POSITION_X : number ;
967+ const POSITION_Y : number ;
961968 const RED_BITS : number ;
962969 const GREEN_BITS : number ;
963970 const BLUE_BITS : number ;
@@ -980,12 +987,14 @@ declare module "glfw-raub" {
980987 const CONTEXT_REVISION : number ;
981988 const CONTEXT_ROBUSTNESS : number ;
982989 const OPENGL_FORWARD_COMPAT : number ;
990+ const CONTEXT_DEBUG : number ;
983991 const OPENGL_DEBUG_CONTEXT : number ;
984992 const OPENGL_PROFILE : number ;
985993 const CONTEXT_RELEASE_BEHAVIOR : number ;
986994 const CONTEXT_NO_ERROR : number ;
987995 const CONTEXT_CREATION_API : number ;
988996 const SCALE_TO_MONITOR : number ;
997+ const SCALE_FRAMEBUFFER : number ;
989998 const COCOA_RETINA_FRAMEBUFFER : number ;
990999 const COCOA_FRAME_NAME : number ;
9911000 const COCOA_GRAPHICS_SWITCHING : number ;
@@ -1008,24 +1017,55 @@ declare module "glfw-raub" {
10081017 const CURSOR_NORMAL : number ;
10091018 const CURSOR_HIDDEN : number ;
10101019 const CURSOR_DISABLED : number ;
1011- const ANY_RELEASE_BEHAVIOR : number ;
1012- const RELEASE_BEHAVIOR_FLUSH : number ;
1013- const RELEASE_BEHAVIOR_NONE : number ;
1014- const NATIVE_CONTEXT_API : number ;
1015- const EGL_CONTEXT_API : number ;
1016- const OSMESA_CONTEXT_API : number ;
1020+ const CURSOR_CAPTURED : number ;
10171021 const ARROW_CURSOR : number ;
10181022 const IBEAM_CURSOR : number ;
10191023 const CROSSHAIR_CURSOR : number ;
10201024 const HAND_CURSOR : number ;
10211025 const HRESIZE_CURSOR : number ;
10221026 const VRESIZE_CURSOR : number ;
1027+ const POINTING_HAND_CURSOR : number ;
1028+ const RESIZE_EW_CURSOR : number ;
1029+ const RESIZE_NS_CURSOR : number ;
1030+ const RESIZE_NWSE_CURSOR : number ;
1031+ const RESIZE_NESW_CURSOR : number ;
1032+ const RESIZE_ALL_CURSOR : number ;
1033+ const NOT_ALLOWED_CURSOR : number ;
1034+ const ANY_RELEASE_BEHAVIOR : number ;
1035+ const RELEASE_BEHAVIOR_FLUSH : number ;
1036+ const RELEASE_BEHAVIOR_NONE : number ;
1037+ const NATIVE_CONTEXT_API : number ;
1038+ const EGL_CONTEXT_API : number ;
1039+ const OSMESA_CONTEXT_API : number ;
1040+ const WIN32_KEYBOARD_MENU : number ;
1041+ const WIN32_SHOWDEFAULT : number ;
1042+ const WAYLAND_APP_ID : number ;
1043+ const ANGLE_PLATFORM_TYPE_NONE : number ;
1044+ const ANGLE_PLATFORM_TYPE_OPENGL : number ;
1045+ const ANGLE_PLATFORM_TYPE_OPENGLES : number ;
1046+ const ANGLE_PLATFORM_TYPE_D3D9 : number ;
1047+ const ANGLE_PLATFORM_TYPE_D3D11 : number ;
1048+ const ANGLE_PLATFORM_TYPE_VULKAN : number ;
1049+ const ANGLE_PLATFORM_TYPE_METAL : number ;
1050+ const WAYLAND_PREFER_LIBDECOR : number ;
1051+ const WAYLAND_DISABLE_LIBDECOR : number ;
1052+ const ANGLE_PLATFORM_TYPE : number ;
1053+ const PLATFORM : number ;
1054+ const X11_XCB_VULKAN_SURFACE : number ;
1055+ const WAYLAND_LIBDECOR : number ;
1056+ const ANY_PLATFORM : number ;
1057+ const PLATFORM_WIN32 : number ;
1058+ const PLATFORM_COCOA : number ;
1059+ const PLATFORM_WAYLAND : number ;
1060+ const PLATFORM_X11 : number ;
1061+ const PLATFORM_NULL : number ;
10231062 const CONNECTED : number ;
10241063 const DISCONNECTED : number ;
10251064 const JOYSTICK_HAT_BUTTONS : number ;
10261065 const COCOA_CHDIR_RESOURCES : number ;
10271066 const COCOA_MENUBAR : number ;
10281067 const DONT_CARE : number ;
1068+ const ANY_POSITION : number ;
10291069
10301070 /**
10311071 * Human-readable names for keyboard keys.
0 commit comments