ruby_rpg 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (483) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -0
  3. data/glfw-3.3.9.bin.MACOS/LICENSE.md +23 -0
  4. data/glfw-3.3.9.bin.MACOS/README.md +5 -0
  5. data/glfw-3.3.9.bin.MACOS/docs/html/bc_s.png +0 -0
  6. data/glfw-3.3.9.bin.MACOS/docs/html/bc_sd.png +0 -0
  7. data/glfw-3.3.9.bin.MACOS/docs/html/build_8dox.html +81 -0
  8. data/glfw-3.3.9.bin.MACOS/docs/html/build_guide.html +199 -0
  9. data/glfw-3.3.9.bin.MACOS/docs/html/closed.png +0 -0
  10. data/glfw-3.3.9.bin.MACOS/docs/html/compat_8dox.html +81 -0
  11. data/glfw-3.3.9.bin.MACOS/docs/html/compat_guide.html +153 -0
  12. data/glfw-3.3.9.bin.MACOS/docs/html/compile_8dox.html +81 -0
  13. data/glfw-3.3.9.bin.MACOS/docs/html/compile_guide.html +223 -0
  14. data/glfw-3.3.9.bin.MACOS/docs/html/context_8dox.html +81 -0
  15. data/glfw-3.3.9.bin.MACOS/docs/html/context_guide.html +259 -0
  16. data/glfw-3.3.9.bin.MACOS/docs/html/deprecated.html +88 -0
  17. data/glfw-3.3.9.bin.MACOS/docs/html/dir_08423ce7729c4554356a7de7171ba263.html +85 -0
  18. data/glfw-3.3.9.bin.MACOS/docs/html/dir_2dcebcdf14b42e92a6ed85c61bda6b9d.html +93 -0
  19. data/glfw-3.3.9.bin.MACOS/docs/html/dir_62ce056722ee97c199075aa1d6eca309.html +95 -0
  20. data/glfw-3.3.9.bin.MACOS/docs/html/dir_dddf4cf62655095a666cf715de3a31a2.html +91 -0
  21. data/glfw-3.3.9.bin.MACOS/docs/html/doc.svg +12 -0
  22. data/glfw-3.3.9.bin.MACOS/docs/html/docd.svg +12 -0
  23. data/glfw-3.3.9.bin.MACOS/docs/html/doxygen.css +1685 -0
  24. data/glfw-3.3.9.bin.MACOS/docs/html/doxygen.svg +28 -0
  25. data/glfw-3.3.9.bin.MACOS/docs/html/dynsections.js +192 -0
  26. data/glfw-3.3.9.bin.MACOS/docs/html/extra.css +1 -0
  27. data/glfw-3.3.9.bin.MACOS/docs/html/files.html +91 -0
  28. data/glfw-3.3.9.bin.MACOS/docs/html/folderclosed.svg +11 -0
  29. data/glfw-3.3.9.bin.MACOS/docs/html/folderclosedd.svg +11 -0
  30. data/glfw-3.3.9.bin.MACOS/docs/html/folderopen.svg +17 -0
  31. data/glfw-3.3.9.bin.MACOS/docs/html/folderopend.svg +12 -0
  32. data/glfw-3.3.9.bin.MACOS/docs/html/glfw3_8h.html +1661 -0
  33. data/glfw-3.3.9.bin.MACOS/docs/html/glfw3_8h_source.html +1175 -0
  34. data/glfw-3.3.9.bin.MACOS/docs/html/glfw3native_8h.html +167 -0
  35. data/glfw-3.3.9.bin.MACOS/docs/html/glfw3native_8h_source.html +303 -0
  36. data/glfw-3.3.9.bin.MACOS/docs/html/group__buttons.html +282 -0
  37. data/glfw-3.3.9.bin.MACOS/docs/html/group__context.html +304 -0
  38. data/glfw-3.3.9.bin.MACOS/docs/html/group__errors.html +304 -0
  39. data/glfw-3.3.9.bin.MACOS/docs/html/group__gamepad__axes.html +202 -0
  40. data/glfw-3.3.9.bin.MACOS/docs/html/group__gamepad__buttons.html +410 -0
  41. data/glfw-3.3.9.bin.MACOS/docs/html/group__hat__state.html +234 -0
  42. data/glfw-3.3.9.bin.MACOS/docs/html/group__init.html +570 -0
  43. data/glfw-3.3.9.bin.MACOS/docs/html/group__input.html +2255 -0
  44. data/glfw-3.3.9.bin.MACOS/docs/html/group__joysticks.html +362 -0
  45. data/glfw-3.3.9.bin.MACOS/docs/html/group__keys.html +2034 -0
  46. data/glfw-3.3.9.bin.MACOS/docs/html/group__mods.html +198 -0
  47. data/glfw-3.3.9.bin.MACOS/docs/html/group__monitor.html +848 -0
  48. data/glfw-3.3.9.bin.MACOS/docs/html/group__native.html +812 -0
  49. data/glfw-3.3.9.bin.MACOS/docs/html/group__shapes.html +198 -0
  50. data/glfw-3.3.9.bin.MACOS/docs/html/group__vulkan.html +359 -0
  51. data/glfw-3.3.9.bin.MACOS/docs/html/group__window.html +3434 -0
  52. data/glfw-3.3.9.bin.MACOS/docs/html/index.html +100 -0
  53. data/glfw-3.3.9.bin.MACOS/docs/html/input_8dox.html +81 -0
  54. data/glfw-3.3.9.bin.MACOS/docs/html/input_guide.html +570 -0
  55. data/glfw-3.3.9.bin.MACOS/docs/html/internal_8dox.html +81 -0
  56. data/glfw-3.3.9.bin.MACOS/docs/html/internals_guide.html +132 -0
  57. data/glfw-3.3.9.bin.MACOS/docs/html/intro_8dox.html +81 -0
  58. data/glfw-3.3.9.bin.MACOS/docs/html/intro_guide.html +351 -0
  59. data/glfw-3.3.9.bin.MACOS/docs/html/jquery.js +34 -0
  60. data/glfw-3.3.9.bin.MACOS/docs/html/main_8dox.html +81 -0
  61. data/glfw-3.3.9.bin.MACOS/docs/html/menu.js +136 -0
  62. data/glfw-3.3.9.bin.MACOS/docs/html/menudata.js +29 -0
  63. data/glfw-3.3.9.bin.MACOS/docs/html/minus.svg +8 -0
  64. data/glfw-3.3.9.bin.MACOS/docs/html/minusd.svg +8 -0
  65. data/glfw-3.3.9.bin.MACOS/docs/html/monitor_8dox.html +81 -0
  66. data/glfw-3.3.9.bin.MACOS/docs/html/monitor_guide.html +229 -0
  67. data/glfw-3.3.9.bin.MACOS/docs/html/moving_8dox.html +81 -0
  68. data/glfw-3.3.9.bin.MACOS/docs/html/moving_guide.html +374 -0
  69. data/glfw-3.3.9.bin.MACOS/docs/html/nav_f.png +0 -0
  70. data/glfw-3.3.9.bin.MACOS/docs/html/nav_fd.png +0 -0
  71. data/glfw-3.3.9.bin.MACOS/docs/html/nav_g.png +0 -0
  72. data/glfw-3.3.9.bin.MACOS/docs/html/nav_h.png +0 -0
  73. data/glfw-3.3.9.bin.MACOS/docs/html/nav_hd.png +0 -0
  74. data/glfw-3.3.9.bin.MACOS/docs/html/news.html +634 -0
  75. data/glfw-3.3.9.bin.MACOS/docs/html/news_8dox.html +81 -0
  76. data/glfw-3.3.9.bin.MACOS/docs/html/open.png +0 -0
  77. data/glfw-3.3.9.bin.MACOS/docs/html/pages.html +99 -0
  78. data/glfw-3.3.9.bin.MACOS/docs/html/plus.svg +9 -0
  79. data/glfw-3.3.9.bin.MACOS/docs/html/plusd.svg +9 -0
  80. data/glfw-3.3.9.bin.MACOS/docs/html/quick_8dox.html +81 -0
  81. data/glfw-3.3.9.bin.MACOS/docs/html/quick_guide.html +397 -0
  82. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_0.js +5 -0
  83. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_1.js +4 -0
  84. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_10.js +65 -0
  85. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_11.js +26 -0
  86. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_12.js +44 -0
  87. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_13.js +34 -0
  88. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_14.js +12 -0
  89. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_15.js +52 -0
  90. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_16.js +69 -0
  91. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_17.js +51 -0
  92. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_18.js +14 -0
  93. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_19.js +36 -0
  94. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_1a.js +98 -0
  95. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_1b.js +12 -0
  96. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_2.js +6 -0
  97. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_3.js +9 -0
  98. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_4.js +57 -0
  99. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_5.js +22 -0
  100. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_6.js +103 -0
  101. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_7.js +23 -0
  102. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_8.js +35 -0
  103. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_9.js +63 -0
  104. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_a.js +505 -0
  105. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_b.js +24 -0
  106. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_c.js +50 -0
  107. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_d.js +17 -0
  108. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_e.js +12 -0
  109. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_f.js +35 -0
  110. data/glfw-3.3.9.bin.MACOS/docs/html/search/classes_0.js +7 -0
  111. data/glfw-3.3.9.bin.MACOS/docs/html/search/close.svg +18 -0
  112. data/glfw-3.3.9.bin.MACOS/docs/html/search/defines_0.js +34 -0
  113. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_0.js +4 -0
  114. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_1.js +6 -0
  115. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_2.js +5 -0
  116. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_3.js +6 -0
  117. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_4.js +6 -0
  118. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_5.js +4 -0
  119. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_6.js +4 -0
  120. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_7.js +4 -0
  121. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_8.js +4 -0
  122. data/glfw-3.3.9.bin.MACOS/docs/html/search/functions_0.js +146 -0
  123. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_0.js +6 -0
  124. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_1.js +4 -0
  125. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_10.js +4 -0
  126. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_2.js +6 -0
  127. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_3.js +5 -0
  128. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_4.js +4 -0
  129. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_5.js +5 -0
  130. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_6.js +4 -0
  131. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_7.js +5 -0
  132. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_8.js +5 -0
  133. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_9.js +6 -0
  134. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_a.js +6 -0
  135. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_b.js +4 -0
  136. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_c.js +4 -0
  137. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_d.js +7 -0
  138. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_e.js +4 -0
  139. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_f.js +5 -0
  140. data/glfw-3.3.9.bin.MACOS/docs/html/search/mag.svg +24 -0
  141. data/glfw-3.3.9.bin.MACOS/docs/html/search/mag_d.svg +24 -0
  142. data/glfw-3.3.9.bin.MACOS/docs/html/search/mag_sel.svg +31 -0
  143. data/glfw-3.3.9.bin.MACOS/docs/html/search/mag_seld.svg +31 -0
  144. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_0.js +4 -0
  145. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_1.js +4 -0
  146. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_10.js +4 -0
  147. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_2.js +5 -0
  148. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_3.js +4 -0
  149. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_4.js +6 -0
  150. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_5.js +4 -0
  151. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_6.js +4 -0
  152. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_7.js +7 -0
  153. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_8.js +6 -0
  154. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_9.js +4 -0
  155. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_a.js +5 -0
  156. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_b.js +5 -0
  157. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_c.js +4 -0
  158. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_d.js +6 -0
  159. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_e.js +6 -0
  160. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_f.js +4 -0
  161. data/glfw-3.3.9.bin.MACOS/docs/html/search/search.css +291 -0
  162. data/glfw-3.3.9.bin.MACOS/docs/html/search/search.js +840 -0
  163. data/glfw-3.3.9.bin.MACOS/docs/html/search/searchdata.js +39 -0
  164. data/glfw-3.3.9.bin.MACOS/docs/html/search/typedefs_0.js +32 -0
  165. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_0.js +4 -0
  166. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_1.js +6 -0
  167. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_2.js +5 -0
  168. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_3.js +4 -0
  169. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_4.js +4 -0
  170. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_5.js +6 -0
  171. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_6.js +4 -0
  172. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_7.js +4 -0
  173. data/glfw-3.3.9.bin.MACOS/docs/html/spaces.svg +877 -0
  174. data/glfw-3.3.9.bin.MACOS/docs/html/splitbar.png +0 -0
  175. data/glfw-3.3.9.bin.MACOS/docs/html/splitbard.png +0 -0
  176. data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wgamepadstate.html +134 -0
  177. data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wgammaramp.html +170 -0
  178. data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wimage.html +151 -0
  179. data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wvidmode.html +204 -0
  180. data/glfw-3.3.9.bin.MACOS/docs/html/sync_off.png +0 -0
  181. data/glfw-3.3.9.bin.MACOS/docs/html/sync_on.png +0 -0
  182. data/glfw-3.3.9.bin.MACOS/docs/html/tab_a.png +0 -0
  183. data/glfw-3.3.9.bin.MACOS/docs/html/tab_ad.png +0 -0
  184. data/glfw-3.3.9.bin.MACOS/docs/html/tab_b.png +0 -0
  185. data/glfw-3.3.9.bin.MACOS/docs/html/tab_bd.png +0 -0
  186. data/glfw-3.3.9.bin.MACOS/docs/html/tab_h.png +0 -0
  187. data/glfw-3.3.9.bin.MACOS/docs/html/tab_hd.png +0 -0
  188. data/glfw-3.3.9.bin.MACOS/docs/html/tab_s.png +0 -0
  189. data/glfw-3.3.9.bin.MACOS/docs/html/tab_sd.png +0 -0
  190. data/glfw-3.3.9.bin.MACOS/docs/html/tabs.css +1 -0
  191. data/glfw-3.3.9.bin.MACOS/docs/html/vulkan_8dox.html +81 -0
  192. data/glfw-3.3.9.bin.MACOS/docs/html/vulkan_guide.html +196 -0
  193. data/glfw-3.3.9.bin.MACOS/docs/html/window_8dox.html +81 -0
  194. data/glfw-3.3.9.bin.MACOS/docs/html/window_guide.html +763 -0
  195. data/glfw-3.3.9.bin.MACOS/include/GLFW/glfw3.h +5932 -0
  196. data/glfw-3.3.9.bin.MACOS/include/GLFW/glfw3native.h +634 -0
  197. data/glfw-3.3.9.bin.MACOS/lib-arm64/libglfw.3.dylib +0 -0
  198. data/glfw-3.3.9.bin.MACOS/lib-arm64/libglfw3.a +0 -0
  199. data/glfw-3.3.9.bin.MACOS/lib-universal/libglfw.3.dylib +0 -0
  200. data/glfw-3.3.9.bin.MACOS/lib-universal/libglfw3.a +0 -0
  201. data/glfw-3.3.9.bin.MACOS/lib-x86_64/libglfw.3.dylib +0 -0
  202. data/glfw-3.3.9.bin.MACOS/lib-x86_64/libglfw3.a +0 -0
  203. data/glfw-3.4.bin.WIN64/LICENSE.md +23 -0
  204. data/glfw-3.4.bin.WIN64/README.md +70 -0
  205. data/glfw-3.4.bin.WIN64/docs/html/bc_s.png +0 -0
  206. data/glfw-3.4.bin.WIN64/docs/html/bc_sd.png +0 -0
  207. data/glfw-3.4.bin.WIN64/docs/html/build_8md.html +81 -0
  208. data/glfw-3.4.bin.WIN64/docs/html/build_guide.html +217 -0
  209. data/glfw-3.4.bin.WIN64/docs/html/closed.png +0 -0
  210. data/glfw-3.4.bin.WIN64/docs/html/compat_8md.html +81 -0
  211. data/glfw-3.4.bin.WIN64/docs/html/compat_guide.html +156 -0
  212. data/glfw-3.4.bin.WIN64/docs/html/compile_8md.html +81 -0
  213. data/glfw-3.4.bin.WIN64/docs/html/compile_guide.html +219 -0
  214. data/glfw-3.4.bin.WIN64/docs/html/context_8md.html +81 -0
  215. data/glfw-3.4.bin.WIN64/docs/html/context_guide.html +258 -0
  216. data/glfw-3.4.bin.WIN64/docs/html/deprecated.html +88 -0
  217. data/glfw-3.4.bin.WIN64/docs/html/dir_13577e2d8b9423099662de029791bd7d.html +93 -0
  218. data/glfw-3.4.bin.WIN64/docs/html/dir_7f92719a7fe62e5b064f87d7a3c220b1.html +95 -0
  219. data/glfw-3.4.bin.WIN64/docs/html/dir_a788ef6c2b1e5b367804e0b6ccfd6f11.html +85 -0
  220. data/glfw-3.4.bin.WIN64/docs/html/dir_b11153cd0f4fd04a7564cc166f482635.html +91 -0
  221. data/glfw-3.4.bin.WIN64/docs/html/doc.svg +12 -0
  222. data/glfw-3.4.bin.WIN64/docs/html/docd.svg +12 -0
  223. data/glfw-3.4.bin.WIN64/docs/html/doxygen.css +1685 -0
  224. data/glfw-3.4.bin.WIN64/docs/html/doxygen.svg +28 -0
  225. data/glfw-3.4.bin.WIN64/docs/html/dynsections.js +192 -0
  226. data/glfw-3.4.bin.WIN64/docs/html/extra.css +2 -0
  227. data/glfw-3.4.bin.WIN64/docs/html/files.html +91 -0
  228. data/glfw-3.4.bin.WIN64/docs/html/folderclosed.svg +11 -0
  229. data/glfw-3.4.bin.WIN64/docs/html/folderclosedd.svg +11 -0
  230. data/glfw-3.4.bin.WIN64/docs/html/folderopen.svg +17 -0
  231. data/glfw-3.4.bin.WIN64/docs/html/folderopend.svg +12 -0
  232. data/glfw-3.4.bin.WIN64/docs/html/glfw3_8h.html +1910 -0
  233. data/glfw-3.4.bin.WIN64/docs/html/glfw3_8h_source.html +1260 -0
  234. data/glfw-3.4.bin.WIN64/docs/html/glfw3native_8h.html +170 -0
  235. data/glfw-3.4.bin.WIN64/docs/html/glfw3native_8h_source.html +306 -0
  236. data/glfw-3.4.bin.WIN64/docs/html/group__buttons.html +282 -0
  237. data/glfw-3.4.bin.WIN64/docs/html/group__context.html +304 -0
  238. data/glfw-3.4.bin.WIN64/docs/html/group__errors.html +384 -0
  239. data/glfw-3.4.bin.WIN64/docs/html/group__gamepad__axes.html +202 -0
  240. data/glfw-3.4.bin.WIN64/docs/html/group__gamepad__buttons.html +410 -0
  241. data/glfw-3.4.bin.WIN64/docs/html/group__hat__state.html +234 -0
  242. data/glfw-3.4.bin.WIN64/docs/html/group__init.html +1015 -0
  243. data/glfw-3.4.bin.WIN64/docs/html/group__input.html +2285 -0
  244. data/glfw-3.4.bin.WIN64/docs/html/group__joysticks.html +362 -0
  245. data/glfw-3.4.bin.WIN64/docs/html/group__keys.html +2034 -0
  246. data/glfw-3.4.bin.WIN64/docs/html/group__mods.html +198 -0
  247. data/glfw-3.4.bin.WIN64/docs/html/group__monitor.html +849 -0
  248. data/glfw-3.4.bin.WIN64/docs/html/group__native.html +837 -0
  249. data/glfw-3.4.bin.WIN64/docs/html/group__shapes.html +337 -0
  250. data/glfw-3.4.bin.WIN64/docs/html/group__vulkan.html +361 -0
  251. data/glfw-3.4.bin.WIN64/docs/html/group__window.html +3608 -0
  252. data/glfw-3.4.bin.WIN64/docs/html/index.html +100 -0
  253. data/glfw-3.4.bin.WIN64/docs/html/input_8md.html +81 -0
  254. data/glfw-3.4.bin.WIN64/docs/html/input_guide.html +576 -0
  255. data/glfw-3.4.bin.WIN64/docs/html/internal_8md.html +81 -0
  256. data/glfw-3.4.bin.WIN64/docs/html/internals_guide.html +135 -0
  257. data/glfw-3.4.bin.WIN64/docs/html/intro_8md.html +81 -0
  258. data/glfw-3.4.bin.WIN64/docs/html/intro_guide.html +429 -0
  259. data/glfw-3.4.bin.WIN64/docs/html/jquery.js +34 -0
  260. data/glfw-3.4.bin.WIN64/docs/html/main_8md.html +81 -0
  261. data/glfw-3.4.bin.WIN64/docs/html/menu.js +136 -0
  262. data/glfw-3.4.bin.WIN64/docs/html/menudata.js +30 -0
  263. data/glfw-3.4.bin.WIN64/docs/html/minus.svg +8 -0
  264. data/glfw-3.4.bin.WIN64/docs/html/minusd.svg +8 -0
  265. data/glfw-3.4.bin.WIN64/docs/html/monitor_8md.html +81 -0
  266. data/glfw-3.4.bin.WIN64/docs/html/monitor_guide.html +228 -0
  267. data/glfw-3.4.bin.WIN64/docs/html/moving_8md.html +81 -0
  268. data/glfw-3.4.bin.WIN64/docs/html/moving_guide.html +360 -0
  269. data/glfw-3.4.bin.WIN64/docs/html/nav_f.png +0 -0
  270. data/glfw-3.4.bin.WIN64/docs/html/nav_fd.png +0 -0
  271. data/glfw-3.4.bin.WIN64/docs/html/nav_g.png +0 -0
  272. data/glfw-3.4.bin.WIN64/docs/html/nav_h.png +0 -0
  273. data/glfw-3.4.bin.WIN64/docs/html/nav_hd.png +0 -0
  274. data/glfw-3.4.bin.WIN64/docs/html/news.html +336 -0
  275. data/glfw-3.4.bin.WIN64/docs/html/news_8md.html +81 -0
  276. data/glfw-3.4.bin.WIN64/docs/html/open.png +0 -0
  277. data/glfw-3.4.bin.WIN64/docs/html/pages.html +99 -0
  278. data/glfw-3.4.bin.WIN64/docs/html/plus.svg +9 -0
  279. data/glfw-3.4.bin.WIN64/docs/html/plusd.svg +9 -0
  280. data/glfw-3.4.bin.WIN64/docs/html/quick_8md.html +81 -0
  281. data/glfw-3.4.bin.WIN64/docs/html/quick_guide.html +406 -0
  282. data/glfw-3.4.bin.WIN64/docs/html/search/all_0.js +4 -0
  283. data/glfw-3.4.bin.WIN64/docs/html/search/all_1.js +4 -0
  284. data/glfw-3.4.bin.WIN64/docs/html/search/all_10.js +13 -0
  285. data/glfw-3.4.bin.WIN64/docs/html/search/all_11.js +11 -0
  286. data/glfw-3.4.bin.WIN64/docs/html/search/all_12.js +26 -0
  287. data/glfw-3.4.bin.WIN64/docs/html/search/all_13.js +51 -0
  288. data/glfw-3.4.bin.WIN64/docs/html/search/all_14.js +22 -0
  289. data/glfw-3.4.bin.WIN64/docs/html/search/all_15.js +35 -0
  290. data/glfw-3.4.bin.WIN64/docs/html/search/all_16.js +29 -0
  291. data/glfw-3.4.bin.WIN64/docs/html/search/all_17.js +8 -0
  292. data/glfw-3.4.bin.WIN64/docs/html/search/all_18.js +44 -0
  293. data/glfw-3.4.bin.WIN64/docs/html/search/all_19.js +60 -0
  294. data/glfw-3.4.bin.WIN64/docs/html/search/all_1a.js +39 -0
  295. data/glfw-3.4.bin.WIN64/docs/html/search/all_1b.js +8 -0
  296. data/glfw-3.4.bin.WIN64/docs/html/search/all_1c.js +32 -0
  297. data/glfw-3.4.bin.WIN64/docs/html/search/all_1d.js +84 -0
  298. data/glfw-3.4.bin.WIN64/docs/html/search/all_1e.js +13 -0
  299. data/glfw-3.4.bin.WIN64/docs/html/search/all_1f.js +4 -0
  300. data/glfw-3.4.bin.WIN64/docs/html/search/all_2.js +5 -0
  301. data/glfw-3.4.bin.WIN64/docs/html/search/all_3.js +4 -0
  302. data/glfw-3.4.bin.WIN64/docs/html/search/all_4.js +4 -0
  303. data/glfw-3.4.bin.WIN64/docs/html/search/all_5.js +4 -0
  304. data/glfw-3.4.bin.WIN64/docs/html/search/all_6.js +4 -0
  305. data/glfw-3.4.bin.WIN64/docs/html/search/all_7.js +58 -0
  306. data/glfw-3.4.bin.WIN64/docs/html/search/all_8.js +21 -0
  307. data/glfw-3.4.bin.WIN64/docs/html/search/all_9.js +82 -0
  308. data/glfw-3.4.bin.WIN64/docs/html/search/all_a.js +20 -0
  309. data/glfw-3.4.bin.WIN64/docs/html/search/all_b.js +26 -0
  310. data/glfw-3.4.bin.WIN64/docs/html/search/all_c.js +35 -0
  311. data/glfw-3.4.bin.WIN64/docs/html/search/all_d.js +555 -0
  312. data/glfw-3.4.bin.WIN64/docs/html/search/all_e.js +23 -0
  313. data/glfw-3.4.bin.WIN64/docs/html/search/all_f.js +40 -0
  314. data/glfw-3.4.bin.WIN64/docs/html/search/classes_0.js +8 -0
  315. data/glfw-3.4.bin.WIN64/docs/html/search/close.svg +18 -0
  316. data/glfw-3.4.bin.WIN64/docs/html/search/defines_0.js +43 -0
  317. data/glfw-3.4.bin.WIN64/docs/html/search/files_0.js +4 -0
  318. data/glfw-3.4.bin.WIN64/docs/html/search/files_1.js +6 -0
  319. data/glfw-3.4.bin.WIN64/docs/html/search/files_2.js +5 -0
  320. data/glfw-3.4.bin.WIN64/docs/html/search/files_3.js +6 -0
  321. data/glfw-3.4.bin.WIN64/docs/html/search/files_4.js +6 -0
  322. data/glfw-3.4.bin.WIN64/docs/html/search/files_5.js +4 -0
  323. data/glfw-3.4.bin.WIN64/docs/html/search/files_6.js +4 -0
  324. data/glfw-3.4.bin.WIN64/docs/html/search/files_7.js +4 -0
  325. data/glfw-3.4.bin.WIN64/docs/html/search/files_8.js +4 -0
  326. data/glfw-3.4.bin.WIN64/docs/html/search/functions_0.js +152 -0
  327. data/glfw-3.4.bin.WIN64/docs/html/search/groups_0.js +6 -0
  328. data/glfw-3.4.bin.WIN64/docs/html/search/groups_1.js +4 -0
  329. data/glfw-3.4.bin.WIN64/docs/html/search/groups_10.js +4 -0
  330. data/glfw-3.4.bin.WIN64/docs/html/search/groups_2.js +6 -0
  331. data/glfw-3.4.bin.WIN64/docs/html/search/groups_3.js +5 -0
  332. data/glfw-3.4.bin.WIN64/docs/html/search/groups_4.js +4 -0
  333. data/glfw-3.4.bin.WIN64/docs/html/search/groups_5.js +5 -0
  334. data/glfw-3.4.bin.WIN64/docs/html/search/groups_6.js +4 -0
  335. data/glfw-3.4.bin.WIN64/docs/html/search/groups_7.js +5 -0
  336. data/glfw-3.4.bin.WIN64/docs/html/search/groups_8.js +5 -0
  337. data/glfw-3.4.bin.WIN64/docs/html/search/groups_9.js +6 -0
  338. data/glfw-3.4.bin.WIN64/docs/html/search/groups_a.js +6 -0
  339. data/glfw-3.4.bin.WIN64/docs/html/search/groups_b.js +4 -0
  340. data/glfw-3.4.bin.WIN64/docs/html/search/groups_c.js +4 -0
  341. data/glfw-3.4.bin.WIN64/docs/html/search/groups_d.js +7 -0
  342. data/glfw-3.4.bin.WIN64/docs/html/search/groups_e.js +4 -0
  343. data/glfw-3.4.bin.WIN64/docs/html/search/groups_f.js +5 -0
  344. data/glfw-3.4.bin.WIN64/docs/html/search/mag.svg +24 -0
  345. data/glfw-3.4.bin.WIN64/docs/html/search/mag_d.svg +24 -0
  346. data/glfw-3.4.bin.WIN64/docs/html/search/mag_sel.svg +31 -0
  347. data/glfw-3.4.bin.WIN64/docs/html/search/mag_seld.svg +31 -0
  348. data/glfw-3.4.bin.WIN64/docs/html/search/pages_0.js +4 -0
  349. data/glfw-3.4.bin.WIN64/docs/html/search/pages_1.js +5 -0
  350. data/glfw-3.4.bin.WIN64/docs/html/search/pages_10.js +5 -0
  351. data/glfw-3.4.bin.WIN64/docs/html/search/pages_11.js +4 -0
  352. data/glfw-3.4.bin.WIN64/docs/html/search/pages_2.js +4 -0
  353. data/glfw-3.4.bin.WIN64/docs/html/search/pages_3.js +5 -0
  354. data/glfw-3.4.bin.WIN64/docs/html/search/pages_4.js +4 -0
  355. data/glfw-3.4.bin.WIN64/docs/html/search/pages_5.js +6 -0
  356. data/glfw-3.4.bin.WIN64/docs/html/search/pages_6.js +4 -0
  357. data/glfw-3.4.bin.WIN64/docs/html/search/pages_7.js +5 -0
  358. data/glfw-3.4.bin.WIN64/docs/html/search/pages_8.js +7 -0
  359. data/glfw-3.4.bin.WIN64/docs/html/search/pages_9.js +7 -0
  360. data/glfw-3.4.bin.WIN64/docs/html/search/pages_a.js +4 -0
  361. data/glfw-3.4.bin.WIN64/docs/html/search/pages_b.js +5 -0
  362. data/glfw-3.4.bin.WIN64/docs/html/search/pages_c.js +4 -0
  363. data/glfw-3.4.bin.WIN64/docs/html/search/pages_d.js +4 -0
  364. data/glfw-3.4.bin.WIN64/docs/html/search/pages_e.js +6 -0
  365. data/glfw-3.4.bin.WIN64/docs/html/search/pages_f.js +6 -0
  366. data/glfw-3.4.bin.WIN64/docs/html/search/search.css +291 -0
  367. data/glfw-3.4.bin.WIN64/docs/html/search/search.js +840 -0
  368. data/glfw-3.4.bin.WIN64/docs/html/search/searchdata.js +39 -0
  369. data/glfw-3.4.bin.WIN64/docs/html/search/typedefs_0.js +36 -0
  370. data/glfw-3.4.bin.WIN64/docs/html/search/variables_0.js +5 -0
  371. data/glfw-3.4.bin.WIN64/docs/html/search/variables_1.js +6 -0
  372. data/glfw-3.4.bin.WIN64/docs/html/search/variables_2.js +4 -0
  373. data/glfw-3.4.bin.WIN64/docs/html/search/variables_3.js +5 -0
  374. data/glfw-3.4.bin.WIN64/docs/html/search/variables_4.js +4 -0
  375. data/glfw-3.4.bin.WIN64/docs/html/search/variables_5.js +4 -0
  376. data/glfw-3.4.bin.WIN64/docs/html/search/variables_6.js +7 -0
  377. data/glfw-3.4.bin.WIN64/docs/html/search/variables_7.js +4 -0
  378. data/glfw-3.4.bin.WIN64/docs/html/search/variables_8.js +4 -0
  379. data/glfw-3.4.bin.WIN64/docs/html/search/variables_9.js +4 -0
  380. data/glfw-3.4.bin.WIN64/docs/html/spaces.svg +877 -0
  381. data/glfw-3.4.bin.WIN64/docs/html/splitbar.png +0 -0
  382. data/glfw-3.4.bin.WIN64/docs/html/splitbard.png +0 -0
  383. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wallocator.html +168 -0
  384. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wgamepadstate.html +134 -0
  385. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wgammaramp.html +170 -0
  386. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wimage.html +151 -0
  387. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wvidmode.html +204 -0
  388. data/glfw-3.4.bin.WIN64/docs/html/sync_off.png +0 -0
  389. data/glfw-3.4.bin.WIN64/docs/html/sync_on.png +0 -0
  390. data/glfw-3.4.bin.WIN64/docs/html/tab_a.png +0 -0
  391. data/glfw-3.4.bin.WIN64/docs/html/tab_ad.png +0 -0
  392. data/glfw-3.4.bin.WIN64/docs/html/tab_b.png +0 -0
  393. data/glfw-3.4.bin.WIN64/docs/html/tab_bd.png +0 -0
  394. data/glfw-3.4.bin.WIN64/docs/html/tab_h.png +0 -0
  395. data/glfw-3.4.bin.WIN64/docs/html/tab_hd.png +0 -0
  396. data/glfw-3.4.bin.WIN64/docs/html/tab_s.png +0 -0
  397. data/glfw-3.4.bin.WIN64/docs/html/tab_sd.png +0 -0
  398. data/glfw-3.4.bin.WIN64/docs/html/tabs.css +1 -0
  399. data/glfw-3.4.bin.WIN64/docs/html/topics.html +101 -0
  400. data/glfw-3.4.bin.WIN64/docs/html/vulkan_8md.html +81 -0
  401. data/glfw-3.4.bin.WIN64/docs/html/vulkan_guide.html +206 -0
  402. data/glfw-3.4.bin.WIN64/docs/html/window_8md.html +81 -0
  403. data/glfw-3.4.bin.WIN64/docs/html/window_guide.html +806 -0
  404. data/glfw-3.4.bin.WIN64/include/GLFW/glfw3.h +6547 -0
  405. data/glfw-3.4.bin.WIN64/include/GLFW/glfw3native.h +663 -0
  406. data/glfw-3.4.bin.WIN64/lib-mingw-w64/glfw3.dll +0 -0
  407. data/glfw-3.4.bin.WIN64/lib-mingw-w64/libglfw3.a +0 -0
  408. data/glfw-3.4.bin.WIN64/lib-mingw-w64/libglfw3dll.a +0 -0
  409. data/glfw-3.4.bin.WIN64/lib-static-ucrt/glfw3.dll +0 -0
  410. data/glfw-3.4.bin.WIN64/lib-static-ucrt/glfw3dll.lib +0 -0
  411. data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3.dll +0 -0
  412. data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3.lib +0 -0
  413. data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3_mt.lib +0 -0
  414. data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3dll.lib +0 -0
  415. data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3.dll +0 -0
  416. data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3.lib +0 -0
  417. data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3_mt.lib +0 -0
  418. data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3dll.lib +0 -0
  419. data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3.dll +0 -0
  420. data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3.lib +0 -0
  421. data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3_mt.lib +0 -0
  422. data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3dll.lib +0 -0
  423. data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3.dll +0 -0
  424. data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3.lib +0 -0
  425. data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3_mt.lib +0 -0
  426. data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3dll.lib +0 -0
  427. data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3.dll +0 -0
  428. data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3.lib +0 -0
  429. data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3_mt.lib +0 -0
  430. data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3dll.lib +0 -0
  431. data/lib/build.bash +12 -0
  432. data/lib/engine/camera.rb +13 -0
  433. data/lib/engine/component.rb +48 -0
  434. data/lib/engine/components/direction_light.rb +23 -0
  435. data/lib/engine/components/font_renderer.rb +134 -0
  436. data/lib/engine/components/mesh_renderer.rb +31 -0
  437. data/lib/engine/components/orthographic_camera.rb +54 -0
  438. data/lib/engine/components/perspective_camera.rb +53 -0
  439. data/lib/engine/components/point_light.rb +24 -0
  440. data/lib/engine/components/sprite_renderer.rb +141 -0
  441. data/lib/engine/components/ui_font_renderer.rb +140 -0
  442. data/lib/engine/components/ui_sprite_renderer.rb +101 -0
  443. data/lib/engine/cursor.rb +43 -0
  444. data/lib/engine/engine.rb +221 -0
  445. data/lib/engine/font.rb +74 -0
  446. data/lib/engine/game_object.rb +198 -0
  447. data/lib/engine/importers/font_importer.rb +69 -0
  448. data/lib/engine/importers/obj_file.rb +244 -0
  449. data/lib/engine/importers/obj_importer.rb +33 -0
  450. data/lib/engine/input.rb +61 -0
  451. data/lib/engine/material.rb +79 -0
  452. data/lib/engine/mesh.rb +43 -0
  453. data/lib/engine/path.rb +92 -0
  454. data/lib/engine/physics/collision.rb +12 -0
  455. data/lib/engine/physics/components/cube_collider.rb +6 -0
  456. data/lib/engine/physics/components/rigidbody.rb +103 -0
  457. data/lib/engine/physics/components/sphere_collider.rb +93 -0
  458. data/lib/engine/physics/physics_resolver.rb +37 -0
  459. data/lib/engine/polygon_mesh.rb +45 -0
  460. data/lib/engine/quaternion.rb +228 -0
  461. data/lib/engine/rendering/instance_renderer.rb +153 -0
  462. data/lib/engine/rendering/render_pipeline.rb +35 -0
  463. data/lib/engine/screenshoter.rb +34 -0
  464. data/lib/engine/shader.rb +91 -0
  465. data/lib/engine/shaders/colour_frag.glsl +9 -0
  466. data/lib/engine/shaders/colour_vertex.glsl +14 -0
  467. data/lib/engine/shaders/mesh_frag.glsl +102 -0
  468. data/lib/engine/shaders/mesh_vertex.glsl +25 -0
  469. data/lib/engine/shaders/skybox_frag.glsl +12 -0
  470. data/lib/engine/shaders/skybox_vert.glsl +14 -0
  471. data/lib/engine/shaders/sprite_frag.glsl +17 -0
  472. data/lib/engine/shaders/sprite_vertex.glsl +16 -0
  473. data/lib/engine/shaders/text_frag.glsl +15 -0
  474. data/lib/engine/shaders/text_vertex.glsl +31 -0
  475. data/lib/engine/shaders/ui_sprite_frag.glsl +15 -0
  476. data/lib/engine/shaders/ui_sprite_vertex.glsl +16 -0
  477. data/lib/engine/shaders/vertex_lit_frag.glsl +89 -0
  478. data/lib/engine/shaders/vertex_lit_vertex.glsl +28 -0
  479. data/lib/engine/tangent_calculator.rb +42 -0
  480. data/lib/engine/texture.rb +52 -0
  481. data/lib/engine/video_mode.rb +37 -0
  482. data/lib/engine/window.rb +126 -0
  483. metadata +482 -1
@@ -0,0 +1,2285 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=9"/>
7
+ <meta name="generator" content="Doxygen 1.9.8"/>
8
+ <title>GLFW: Input reference</title>
9
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
10
+ <script type="text/javascript" src="jquery.js"></script>
11
+ <script type="text/javascript" src="dynsections.js"></script>
12
+ <link href="search/search.css" rel="stylesheet" type="text/css"/>
13
+ <script type="text/javascript" src="search/searchdata.js"></script>
14
+ <script type="text/javascript" src="search/search.js"></script>
15
+ <link href="doxygen.css" rel="stylesheet" type="text/css" />
16
+ <link href="extra.css" rel="stylesheet" type="text/css"/>
17
+ </head>
18
+ <body>
19
+ <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
20
+ <div id="titlearea">
21
+ <div class="glfwheader">
22
+ <a href="https://www.glfw.org/" id="glfwhome">GLFW</a>
23
+ <ul class="glfwnavbar">
24
+ <li><a href="https://www.glfw.org/documentation.html">Documentation</a></li>
25
+ <li><a href="https://www.glfw.org/download.html">Download</a></li>
26
+ <li><a href="https://www.glfw.org/community.html">Community</a></li>
27
+ </ul>
28
+ </div>
29
+ </div>
30
+ <!-- end header part -->
31
+ <!-- Generated by Doxygen 1.9.8 -->
32
+ <script type="text/javascript">
33
+ /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
34
+ var searchBox = new SearchBox("searchBox", "search/",'.html');
35
+ /* @license-end */
36
+ </script>
37
+ <script type="text/javascript" src="menudata.js"></script>
38
+ <script type="text/javascript" src="menu.js"></script>
39
+ <script type="text/javascript">
40
+ /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
41
+ $(function() {
42
+ initMenu('',true,false,'search.php','Search');
43
+ $(document).ready(function() { init_search(); });
44
+ });
45
+ /* @license-end */
46
+ </script>
47
+ <div id="main-nav"></div>
48
+ </div><!-- top -->
49
+ <!-- window showing the filter options -->
50
+ <div id="MSearchSelectWindow"
51
+ onmouseover="return searchBox.OnSearchSelectShow()"
52
+ onmouseout="return searchBox.OnSearchSelectHide()"
53
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
54
+ </div>
55
+
56
+ <!-- iframe showing the search results (closed by default) -->
57
+ <div id="MSearchResultsWindow">
58
+ <div id="MSearchResults">
59
+ <div class="SRPage">
60
+ <div id="SRIndex">
61
+ <div id="SRResults"></div>
62
+ <div class="SRStatus" id="Loading">Loading...</div>
63
+ <div class="SRStatus" id="Searching">Searching...</div>
64
+ <div class="SRStatus" id="NoMatches">No Matches</div>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </div>
69
+
70
+ <div class="header">
71
+ <div class="summary">
72
+ <a href="#groups">Modules</a> &#124;
73
+ <a href="#define-members">Macros</a> &#124;
74
+ <a href="#typedef-members">Typedefs</a> &#124;
75
+ <a href="#func-members">Functions</a> </div>
76
+ <div class="headertitle"><div class="title">Input reference</div></div>
77
+ </div><!--header-->
78
+ <div class="contents">
79
+ <a name="details" id="details"></a><h2 class="groupheader">Description</h2>
80
+ <p>This is the reference documentation for input related functions and types. For more task-oriented information, see the <a class="el" href="input_guide.html">Input guide</a>. </p>
81
+ <table class="memberdecls">
82
+ <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="groups" name="groups"></a>
83
+ Modules</h2></td></tr>
84
+ <tr class="memitem:group__gamepad__axes" id="r_group__gamepad__axes"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gamepad__axes.html">Gamepad axes</a></td></tr>
85
+ <tr class="memdesc:group__gamepad__axes"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gamepad axes. <br /></td></tr>
86
+ <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
87
+ <tr class="memitem:group__gamepad__buttons" id="r_group__gamepad__buttons"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gamepad__buttons.html">Gamepad buttons</a></td></tr>
88
+ <tr class="memdesc:group__gamepad__buttons"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gamepad buttons. <br /></td></tr>
89
+ <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
90
+ <tr class="memitem:group__hat__state" id="r_group__hat__state"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hat__state.html">Joystick hat states</a></td></tr>
91
+ <tr class="memdesc:group__hat__state"><td class="mdescLeft">&#160;</td><td class="mdescRight">Joystick hat states. <br /></td></tr>
92
+ <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
93
+ <tr class="memitem:group__joysticks" id="r_group__joysticks"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__joysticks.html">Joysticks</a></td></tr>
94
+ <tr class="memdesc:group__joysticks"><td class="mdescLeft">&#160;</td><td class="mdescRight">Joystick IDs. <br /></td></tr>
95
+ <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
96
+ <tr class="memitem:group__keys" id="r_group__keys"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__keys.html">Keyboard key tokens</a></td></tr>
97
+ <tr class="memdesc:group__keys"><td class="mdescLeft">&#160;</td><td class="mdescRight">Keyboard key tokens. <br /></td></tr>
98
+ <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
99
+ <tr class="memitem:group__mods" id="r_group__mods"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__mods.html">Modifier key flags</a></td></tr>
100
+ <tr class="memdesc:group__mods"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modifier key flags. <br /></td></tr>
101
+ <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
102
+ <tr class="memitem:group__buttons" id="r_group__buttons"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__buttons.html">Mouse buttons</a></td></tr>
103
+ <tr class="memdesc:group__buttons"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mouse button IDs. <br /></td></tr>
104
+ <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
105
+ <tr class="memitem:group__shapes" id="r_group__shapes"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__shapes.html">Standard cursor shapes</a></td></tr>
106
+ <tr class="memdesc:group__shapes"><td class="mdescLeft">&#160;</td><td class="mdescRight">Standard system cursor shapes. <br /></td></tr>
107
+ <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
108
+ </table><table class="memberdecls">
109
+ <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
110
+ Macros</h2></td></tr>
111
+ <tr class="memitem:ga99aacc875b6b27a072552631e13775c7" id="r_ga99aacc875b6b27a072552631e13775c7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga99aacc875b6b27a072552631e13775c7">GLFW_KEY_UNKNOWN</a>&#160;&#160;&#160;-1</td></tr>
112
+ <tr class="separator:ga99aacc875b6b27a072552631e13775c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
113
+ </table><table class="memberdecls">
114
+ <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
115
+ Typedefs</h2></td></tr>
116
+ <tr class="memitem:ga89261ae18c75e863aaf2656ecdd238f4" id="r_ga89261ae18c75e863aaf2656ecdd238f4"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a></td></tr>
117
+ <tr class="memdesc:ga89261ae18c75e863aaf2656ecdd238f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opaque cursor object. <br /></td></tr>
118
+ <tr class="separator:ga89261ae18c75e863aaf2656ecdd238f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
119
+ <tr class="memitem:ga0184dcb59f6d85d735503dcaae809727" id="r_ga0184dcb59f6d85d735503dcaae809727"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga0184dcb59f6d85d735503dcaae809727">GLFWmousebuttonfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int button, int action, int mods)</td></tr>
120
+ <tr class="memdesc:ga0184dcb59f6d85d735503dcaae809727"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function pointer type for mouse button callbacks. <br /></td></tr>
121
+ <tr class="separator:ga0184dcb59f6d85d735503dcaae809727"><td class="memSeparator" colspan="2">&#160;</td></tr>
122
+ <tr class="memitem:gad6fae41b3ac2e4209aaa87b596c57f68" id="r_gad6fae41b3ac2e4209aaa87b596c57f68"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gad6fae41b3ac2e4209aaa87b596c57f68">GLFWcursorposfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, double xpos, double ypos)</td></tr>
123
+ <tr class="memdesc:gad6fae41b3ac2e4209aaa87b596c57f68"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function pointer type for cursor position callbacks. <br /></td></tr>
124
+ <tr class="separator:gad6fae41b3ac2e4209aaa87b596c57f68"><td class="memSeparator" colspan="2">&#160;</td></tr>
125
+ <tr class="memitem:gaa93dc4818ac9ab32532909d53a337cbe" id="r_gaa93dc4818ac9ab32532909d53a337cbe"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaa93dc4818ac9ab32532909d53a337cbe">GLFWcursorenterfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int entered)</td></tr>
126
+ <tr class="memdesc:gaa93dc4818ac9ab32532909d53a337cbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function pointer type for cursor enter/leave callbacks. <br /></td></tr>
127
+ <tr class="separator:gaa93dc4818ac9ab32532909d53a337cbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
128
+ <tr class="memitem:gaf656112c33de3efdb227fa58f0134cf5" id="r_gaf656112c33de3efdb227fa58f0134cf5"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaf656112c33de3efdb227fa58f0134cf5">GLFWscrollfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, double xoffset, double yoffset)</td></tr>
129
+ <tr class="memdesc:gaf656112c33de3efdb227fa58f0134cf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function pointer type for scroll callbacks. <br /></td></tr>
130
+ <tr class="separator:gaf656112c33de3efdb227fa58f0134cf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
131
+ <tr class="memitem:ga5bd751b27b90f865d2ea613533f0453c" id="r_ga5bd751b27b90f865d2ea613533f0453c"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga5bd751b27b90f865d2ea613533f0453c">GLFWkeyfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int key, int scancode, int action, int mods)</td></tr>
132
+ <tr class="memdesc:ga5bd751b27b90f865d2ea613533f0453c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function pointer type for keyboard key callbacks. <br /></td></tr>
133
+ <tr class="separator:ga5bd751b27b90f865d2ea613533f0453c"><td class="memSeparator" colspan="2">&#160;</td></tr>
134
+ <tr class="memitem:ga1ab90a55cf3f58639b893c0f4118cb6e" id="r_ga1ab90a55cf3f58639b893c0f4118cb6e"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga1ab90a55cf3f58639b893c0f4118cb6e">GLFWcharfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, unsigned int codepoint)</td></tr>
135
+ <tr class="memdesc:ga1ab90a55cf3f58639b893c0f4118cb6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function pointer type for Unicode character callbacks. <br /></td></tr>
136
+ <tr class="separator:ga1ab90a55cf3f58639b893c0f4118cb6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
137
+ <tr class="memitem:gac3cf64f90b6219c05ac7b7822d5a4b8f" id="r_gac3cf64f90b6219c05ac7b7822d5a4b8f"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gac3cf64f90b6219c05ac7b7822d5a4b8f">GLFWcharmodsfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, unsigned int codepoint, int mods)</td></tr>
138
+ <tr class="memdesc:gac3cf64f90b6219c05ac7b7822d5a4b8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function pointer type for Unicode character with modifiers callbacks. <br /></td></tr>
139
+ <tr class="separator:gac3cf64f90b6219c05ac7b7822d5a4b8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
140
+ <tr class="memitem:gaaba73c3274062c18723b7f05862d94b2" id="r_gaaba73c3274062c18723b7f05862d94b2"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaaba73c3274062c18723b7f05862d94b2">GLFWdropfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int path_count, const char *paths[])</td></tr>
141
+ <tr class="memdesc:gaaba73c3274062c18723b7f05862d94b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function pointer type for path drop callbacks. <br /></td></tr>
142
+ <tr class="separator:gaaba73c3274062c18723b7f05862d94b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
143
+ <tr class="memitem:gaa21ad5986ae9a26077a40142efb56243" id="r_gaa21ad5986ae9a26077a40142efb56243"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaa21ad5986ae9a26077a40142efb56243">GLFWjoystickfun</a>) (int jid, int event)</td></tr>
144
+ <tr class="memdesc:gaa21ad5986ae9a26077a40142efb56243"><td class="mdescLeft">&#160;</td><td class="mdescRight">The function pointer type for joystick configuration callbacks. <br /></td></tr>
145
+ <tr class="separator:gaa21ad5986ae9a26077a40142efb56243"><td class="memSeparator" colspan="2">&#160;</td></tr>
146
+ <tr class="memitem:ga61acfb1f28f751438dd221225c5e725d" id="r_ga61acfb1f28f751438dd221225c5e725d"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct_g_l_f_wgamepadstate.html">GLFWgamepadstate</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga61acfb1f28f751438dd221225c5e725d">GLFWgamepadstate</a></td></tr>
147
+ <tr class="memdesc:ga61acfb1f28f751438dd221225c5e725d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gamepad input state. <br /></td></tr>
148
+ <tr class="separator:ga61acfb1f28f751438dd221225c5e725d"><td class="memSeparator" colspan="2">&#160;</td></tr>
149
+ </table><table class="memberdecls">
150
+ <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
151
+ Functions</h2></td></tr>
152
+ <tr class="memitem:gaf5b859dbe19bdf434e42695ea45cc5f4" id="r_gaf5b859dbe19bdf434e42695ea45cc5f4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaf5b859dbe19bdf434e42695ea45cc5f4">glfwGetInputMode</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int mode)</td></tr>
153
+ <tr class="memdesc:gaf5b859dbe19bdf434e42695ea45cc5f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value of an input option for the specified window. <br /></td></tr>
154
+ <tr class="separator:gaf5b859dbe19bdf434e42695ea45cc5f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
155
+ <tr class="memitem:gaa92336e173da9c8834558b54ee80563b" id="r_gaa92336e173da9c8834558b54ee80563b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaa92336e173da9c8834558b54ee80563b">glfwSetInputMode</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int mode, int value)</td></tr>
156
+ <tr class="memdesc:gaa92336e173da9c8834558b54ee80563b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets an input option for the specified window. <br /></td></tr>
157
+ <tr class="separator:gaa92336e173da9c8834558b54ee80563b"><td class="memSeparator" colspan="2">&#160;</td></tr>
158
+ <tr class="memitem:gae4ee0dbd0d256183e1ea4026d897e1c2" id="r_gae4ee0dbd0d256183e1ea4026d897e1c2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gae4ee0dbd0d256183e1ea4026d897e1c2">glfwRawMouseMotionSupported</a> (void)</td></tr>
159
+ <tr class="memdesc:gae4ee0dbd0d256183e1ea4026d897e1c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether raw mouse motion is supported. <br /></td></tr>
160
+ <tr class="separator:gae4ee0dbd0d256183e1ea4026d897e1c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
161
+ <tr class="memitem:gaeaed62e69c3bd62b7ff8f7b19913ce4f" id="r_gaeaed62e69c3bd62b7ff8f7b19913ce4f"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaeaed62e69c3bd62b7ff8f7b19913ce4f">glfwGetKeyName</a> (int key, int scancode)</td></tr>
162
+ <tr class="memdesc:gaeaed62e69c3bd62b7ff8f7b19913ce4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the layout-specific name of the specified printable key. <br /></td></tr>
163
+ <tr class="separator:gaeaed62e69c3bd62b7ff8f7b19913ce4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
164
+ <tr class="memitem:ga67ddd1b7dcbbaff03e4a76c0ea67103a" id="r_ga67ddd1b7dcbbaff03e4a76c0ea67103a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga67ddd1b7dcbbaff03e4a76c0ea67103a">glfwGetKeyScancode</a> (int key)</td></tr>
165
+ <tr class="memdesc:ga67ddd1b7dcbbaff03e4a76c0ea67103a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the platform-specific scancode of the specified key. <br /></td></tr>
166
+ <tr class="separator:ga67ddd1b7dcbbaff03e4a76c0ea67103a"><td class="memSeparator" colspan="2">&#160;</td></tr>
167
+ <tr class="memitem:gadd341da06bc8d418b4dc3a3518af9ad2" id="r_gadd341da06bc8d418b4dc3a3518af9ad2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gadd341da06bc8d418b4dc3a3518af9ad2">glfwGetKey</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int key)</td></tr>
168
+ <tr class="memdesc:gadd341da06bc8d418b4dc3a3518af9ad2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the last reported state of a keyboard key for the specified window. <br /></td></tr>
169
+ <tr class="separator:gadd341da06bc8d418b4dc3a3518af9ad2"><td class="memSeparator" colspan="2">&#160;</td></tr>
170
+ <tr class="memitem:gac1473feacb5996c01a7a5a33b5066704" id="r_gac1473feacb5996c01a7a5a33b5066704"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gac1473feacb5996c01a7a5a33b5066704">glfwGetMouseButton</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int button)</td></tr>
171
+ <tr class="memdesc:gac1473feacb5996c01a7a5a33b5066704"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the last reported state of a mouse button for the specified window. <br /></td></tr>
172
+ <tr class="separator:gac1473feacb5996c01a7a5a33b5066704"><td class="memSeparator" colspan="2">&#160;</td></tr>
173
+ <tr class="memitem:ga01d37b6c40133676b9cea60ca1d7c0cc" id="r_ga01d37b6c40133676b9cea60ca1d7c0cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga01d37b6c40133676b9cea60ca1d7c0cc">glfwGetCursorPos</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, double *xpos, double *ypos)</td></tr>
174
+ <tr class="memdesc:ga01d37b6c40133676b9cea60ca1d7c0cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the position of the cursor relative to the content area of the window. <br /></td></tr>
175
+ <tr class="separator:ga01d37b6c40133676b9cea60ca1d7c0cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
176
+ <tr class="memitem:ga04b03af936d906ca123c8f4ee08b39e7" id="r_ga04b03af936d906ca123c8f4ee08b39e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga04b03af936d906ca123c8f4ee08b39e7">glfwSetCursorPos</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, double xpos, double ypos)</td></tr>
177
+ <tr class="memdesc:ga04b03af936d906ca123c8f4ee08b39e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the position of the cursor, relative to the content area of the window. <br /></td></tr>
178
+ <tr class="separator:ga04b03af936d906ca123c8f4ee08b39e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
179
+ <tr class="memitem:ga556f604f73af156c0db0e97c081373c3" id="r_ga556f604f73af156c0db0e97c081373c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga556f604f73af156c0db0e97c081373c3">glfwCreateCursor</a> (const <a class="el" href="struct_g_l_f_wimage.html">GLFWimage</a> *image, int xhot, int yhot)</td></tr>
180
+ <tr class="memdesc:ga556f604f73af156c0db0e97c081373c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a custom cursor. <br /></td></tr>
181
+ <tr class="separator:ga556f604f73af156c0db0e97c081373c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
182
+ <tr class="memitem:gaf2fb2eb2c9dd842d1cef8a34e3c6403e" id="r_gaf2fb2eb2c9dd842d1cef8a34e3c6403e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaf2fb2eb2c9dd842d1cef8a34e3c6403e">glfwCreateStandardCursor</a> (int shape)</td></tr>
183
+ <tr class="memdesc:gaf2fb2eb2c9dd842d1cef8a34e3c6403e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a cursor with a standard shape. <br /></td></tr>
184
+ <tr class="separator:gaf2fb2eb2c9dd842d1cef8a34e3c6403e"><td class="memSeparator" colspan="2">&#160;</td></tr>
185
+ <tr class="memitem:ga81b952cd1764274d0db7fb3c5a79ba6a" id="r_ga81b952cd1764274d0db7fb3c5a79ba6a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga81b952cd1764274d0db7fb3c5a79ba6a">glfwDestroyCursor</a> (<a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a> *cursor)</td></tr>
186
+ <tr class="memdesc:ga81b952cd1764274d0db7fb3c5a79ba6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys a cursor. <br /></td></tr>
187
+ <tr class="separator:ga81b952cd1764274d0db7fb3c5a79ba6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
188
+ <tr class="memitem:gad3b4f38c8d5dae036bc8fa959e18343e" id="r_gad3b4f38c8d5dae036bc8fa959e18343e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gad3b4f38c8d5dae036bc8fa959e18343e">glfwSetCursor</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a> *cursor)</td></tr>
189
+ <tr class="memdesc:gad3b4f38c8d5dae036bc8fa959e18343e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the cursor for the window. <br /></td></tr>
190
+ <tr class="separator:gad3b4f38c8d5dae036bc8fa959e18343e"><td class="memSeparator" colspan="2">&#160;</td></tr>
191
+ <tr class="memitem:ga1caf18159767e761185e49a3be019f8d" id="r_ga1caf18159767e761185e49a3be019f8d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#ga5bd751b27b90f865d2ea613533f0453c">GLFWkeyfun</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga1caf18159767e761185e49a3be019f8d">glfwSetKeyCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__input.html#ga5bd751b27b90f865d2ea613533f0453c">GLFWkeyfun</a> callback)</td></tr>
192
+ <tr class="memdesc:ga1caf18159767e761185e49a3be019f8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the key callback. <br /></td></tr>
193
+ <tr class="separator:ga1caf18159767e761185e49a3be019f8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
194
+ <tr class="memitem:gab25c4a220fd8f5717718dbc487828996" id="r_gab25c4a220fd8f5717718dbc487828996"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#ga1ab90a55cf3f58639b893c0f4118cb6e">GLFWcharfun</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gab25c4a220fd8f5717718dbc487828996">glfwSetCharCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__input.html#ga1ab90a55cf3f58639b893c0f4118cb6e">GLFWcharfun</a> callback)</td></tr>
195
+ <tr class="memdesc:gab25c4a220fd8f5717718dbc487828996"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the Unicode character callback. <br /></td></tr>
196
+ <tr class="separator:gab25c4a220fd8f5717718dbc487828996"><td class="memSeparator" colspan="2">&#160;</td></tr>
197
+ <tr class="memitem:ga0b7f4ad13c2b17435ff13b6dcfb4e43c" id="r_ga0b7f4ad13c2b17435ff13b6dcfb4e43c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#gac3cf64f90b6219c05ac7b7822d5a4b8f">GLFWcharmodsfun</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga0b7f4ad13c2b17435ff13b6dcfb4e43c">glfwSetCharModsCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__input.html#gac3cf64f90b6219c05ac7b7822d5a4b8f">GLFWcharmodsfun</a> callback)</td></tr>
198
+ <tr class="memdesc:ga0b7f4ad13c2b17435ff13b6dcfb4e43c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the Unicode character with modifiers callback. <br /></td></tr>
199
+ <tr class="separator:ga0b7f4ad13c2b17435ff13b6dcfb4e43c"><td class="memSeparator" colspan="2">&#160;</td></tr>
200
+ <tr class="memitem:ga6ab84420974d812bee700e45284a723c" id="r_ga6ab84420974d812bee700e45284a723c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#ga0184dcb59f6d85d735503dcaae809727">GLFWmousebuttonfun</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga6ab84420974d812bee700e45284a723c">glfwSetMouseButtonCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__input.html#ga0184dcb59f6d85d735503dcaae809727">GLFWmousebuttonfun</a> callback)</td></tr>
201
+ <tr class="memdesc:ga6ab84420974d812bee700e45284a723c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the mouse button callback. <br /></td></tr>
202
+ <tr class="separator:ga6ab84420974d812bee700e45284a723c"><td class="memSeparator" colspan="2">&#160;</td></tr>
203
+ <tr class="memitem:gac1f879ab7435d54d4d79bb469fe225d7" id="r_gac1f879ab7435d54d4d79bb469fe225d7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#gad6fae41b3ac2e4209aaa87b596c57f68">GLFWcursorposfun</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gac1f879ab7435d54d4d79bb469fe225d7">glfwSetCursorPosCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__input.html#gad6fae41b3ac2e4209aaa87b596c57f68">GLFWcursorposfun</a> callback)</td></tr>
204
+ <tr class="memdesc:gac1f879ab7435d54d4d79bb469fe225d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the cursor position callback. <br /></td></tr>
205
+ <tr class="separator:gac1f879ab7435d54d4d79bb469fe225d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
206
+ <tr class="memitem:gad27f8ad0142c038a281466c0966817d8" id="r_gad27f8ad0142c038a281466c0966817d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#gaa93dc4818ac9ab32532909d53a337cbe">GLFWcursorenterfun</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gad27f8ad0142c038a281466c0966817d8">glfwSetCursorEnterCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__input.html#gaa93dc4818ac9ab32532909d53a337cbe">GLFWcursorenterfun</a> callback)</td></tr>
207
+ <tr class="memdesc:gad27f8ad0142c038a281466c0966817d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the cursor enter/leave callback. <br /></td></tr>
208
+ <tr class="separator:gad27f8ad0142c038a281466c0966817d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
209
+ <tr class="memitem:ga571e45a030ae4061f746ed56cb76aede" id="r_ga571e45a030ae4061f746ed56cb76aede"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#gaf656112c33de3efdb227fa58f0134cf5">GLFWscrollfun</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga571e45a030ae4061f746ed56cb76aede">glfwSetScrollCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__input.html#gaf656112c33de3efdb227fa58f0134cf5">GLFWscrollfun</a> callback)</td></tr>
210
+ <tr class="memdesc:ga571e45a030ae4061f746ed56cb76aede"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the scroll callback. <br /></td></tr>
211
+ <tr class="separator:ga571e45a030ae4061f746ed56cb76aede"><td class="memSeparator" colspan="2">&#160;</td></tr>
212
+ <tr class="memitem:gab773f0ee0a07cff77a210cea40bc1f6b" id="r_gab773f0ee0a07cff77a210cea40bc1f6b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#gaaba73c3274062c18723b7f05862d94b2">GLFWdropfun</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gab773f0ee0a07cff77a210cea40bc1f6b">glfwSetDropCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__input.html#gaaba73c3274062c18723b7f05862d94b2">GLFWdropfun</a> callback)</td></tr>
213
+ <tr class="memdesc:gab773f0ee0a07cff77a210cea40bc1f6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the path drop callback. <br /></td></tr>
214
+ <tr class="separator:gab773f0ee0a07cff77a210cea40bc1f6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
215
+ <tr class="memitem:gaed0966cee139d815317f9ffcba64c9f1" id="r_gaed0966cee139d815317f9ffcba64c9f1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a> (int jid)</td></tr>
216
+ <tr class="memdesc:gaed0966cee139d815317f9ffcba64c9f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the specified joystick is present. <br /></td></tr>
217
+ <tr class="separator:gaed0966cee139d815317f9ffcba64c9f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
218
+ <tr class="memitem:gaeb1c0191d3140a233a682987c61eb408" id="r_gaeb1c0191d3140a233a682987c61eb408"><td class="memItemLeft" align="right" valign="top">const float *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaeb1c0191d3140a233a682987c61eb408">glfwGetJoystickAxes</a> (int jid, int *count)</td></tr>
219
+ <tr class="memdesc:gaeb1c0191d3140a233a682987c61eb408"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the values of all axes of the specified joystick. <br /></td></tr>
220
+ <tr class="separator:gaeb1c0191d3140a233a682987c61eb408"><td class="memSeparator" colspan="2">&#160;</td></tr>
221
+ <tr class="memitem:ga5ffe34739d3dc97efe432ed2d81d9938" id="r_ga5ffe34739d3dc97efe432ed2d81d9938"><td class="memItemLeft" align="right" valign="top">const unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga5ffe34739d3dc97efe432ed2d81d9938">glfwGetJoystickButtons</a> (int jid, int *count)</td></tr>
222
+ <tr class="memdesc:ga5ffe34739d3dc97efe432ed2d81d9938"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the state of all buttons of the specified joystick. <br /></td></tr>
223
+ <tr class="separator:ga5ffe34739d3dc97efe432ed2d81d9938"><td class="memSeparator" colspan="2">&#160;</td></tr>
224
+ <tr class="memitem:ga06e660841b3e79c54da4f54a932c5a2c" id="r_ga06e660841b3e79c54da4f54a932c5a2c"><td class="memItemLeft" align="right" valign="top">const unsigned char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga06e660841b3e79c54da4f54a932c5a2c">glfwGetJoystickHats</a> (int jid, int *count)</td></tr>
225
+ <tr class="memdesc:ga06e660841b3e79c54da4f54a932c5a2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the state of all hats of the specified joystick. <br /></td></tr>
226
+ <tr class="separator:ga06e660841b3e79c54da4f54a932c5a2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
227
+ <tr class="memitem:gac6a8e769e18e0bcfa9097793fc2c3978" id="r_gac6a8e769e18e0bcfa9097793fc2c3978"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gac6a8e769e18e0bcfa9097793fc2c3978">glfwGetJoystickName</a> (int jid)</td></tr>
228
+ <tr class="memdesc:gac6a8e769e18e0bcfa9097793fc2c3978"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the name of the specified joystick. <br /></td></tr>
229
+ <tr class="separator:gac6a8e769e18e0bcfa9097793fc2c3978"><td class="memSeparator" colspan="2">&#160;</td></tr>
230
+ <tr class="memitem:ga6659411aec3c7fcef27780e2cb2d9600" id="r_ga6659411aec3c7fcef27780e2cb2d9600"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga6659411aec3c7fcef27780e2cb2d9600">glfwGetJoystickGUID</a> (int jid)</td></tr>
231
+ <tr class="memdesc:ga6659411aec3c7fcef27780e2cb2d9600"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the SDL compatible GUID of the specified joystick. <br /></td></tr>
232
+ <tr class="separator:ga6659411aec3c7fcef27780e2cb2d9600"><td class="memSeparator" colspan="2">&#160;</td></tr>
233
+ <tr class="memitem:ga6b2f72d64d636b48a727b437cbb7489e" id="r_ga6b2f72d64d636b48a727b437cbb7489e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga6b2f72d64d636b48a727b437cbb7489e">glfwSetJoystickUserPointer</a> (int jid, void *pointer)</td></tr>
234
+ <tr class="memdesc:ga6b2f72d64d636b48a727b437cbb7489e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the user pointer of the specified joystick. <br /></td></tr>
235
+ <tr class="separator:ga6b2f72d64d636b48a727b437cbb7489e"><td class="memSeparator" colspan="2">&#160;</td></tr>
236
+ <tr class="memitem:ga18cefd7265d1fa04f3fd38a6746db5f3" id="r_ga18cefd7265d1fa04f3fd38a6746db5f3"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga18cefd7265d1fa04f3fd38a6746db5f3">glfwGetJoystickUserPointer</a> (int jid)</td></tr>
237
+ <tr class="memdesc:ga18cefd7265d1fa04f3fd38a6746db5f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the user pointer of the specified joystick. <br /></td></tr>
238
+ <tr class="separator:ga18cefd7265d1fa04f3fd38a6746db5f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
239
+ <tr class="memitem:gad0f676860f329d80f7e47e9f06a96f00" id="r_gad0f676860f329d80f7e47e9f06a96f00"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gad0f676860f329d80f7e47e9f06a96f00">glfwJoystickIsGamepad</a> (int jid)</td></tr>
240
+ <tr class="memdesc:gad0f676860f329d80f7e47e9f06a96f00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the specified joystick has a gamepad mapping. <br /></td></tr>
241
+ <tr class="separator:gad0f676860f329d80f7e47e9f06a96f00"><td class="memSeparator" colspan="2">&#160;</td></tr>
242
+ <tr class="memitem:ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c" id="r_ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__input.html#gaa21ad5986ae9a26077a40142efb56243">GLFWjoystickfun</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c">glfwSetJoystickCallback</a> (<a class="el" href="group__input.html#gaa21ad5986ae9a26077a40142efb56243">GLFWjoystickfun</a> callback)</td></tr>
243
+ <tr class="memdesc:ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the joystick configuration callback. <br /></td></tr>
244
+ <tr class="separator:ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
245
+ <tr class="memitem:gaed5104612f2fa8e66aa6e846652ad00f" id="r_gaed5104612f2fa8e66aa6e846652ad00f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaed5104612f2fa8e66aa6e846652ad00f">glfwUpdateGamepadMappings</a> (const char *string)</td></tr>
246
+ <tr class="memdesc:gaed5104612f2fa8e66aa6e846652ad00f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the specified SDL_GameControllerDB gamepad mappings. <br /></td></tr>
247
+ <tr class="separator:gaed5104612f2fa8e66aa6e846652ad00f"><td class="memSeparator" colspan="2">&#160;</td></tr>
248
+ <tr class="memitem:ga8aea73a1a25cc6c0486a617019f56728" id="r_ga8aea73a1a25cc6c0486a617019f56728"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga8aea73a1a25cc6c0486a617019f56728">glfwGetGamepadName</a> (int jid)</td></tr>
249
+ <tr class="memdesc:ga8aea73a1a25cc6c0486a617019f56728"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the human-readable gamepad name for the specified joystick. <br /></td></tr>
250
+ <tr class="separator:ga8aea73a1a25cc6c0486a617019f56728"><td class="memSeparator" colspan="2">&#160;</td></tr>
251
+ <tr class="memitem:gadccddea8bce6113fa459de379ddaf051" id="r_gadccddea8bce6113fa459de379ddaf051"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gadccddea8bce6113fa459de379ddaf051">glfwGetGamepadState</a> (int jid, <a class="el" href="struct_g_l_f_wgamepadstate.html">GLFWgamepadstate</a> *state)</td></tr>
252
+ <tr class="memdesc:gadccddea8bce6113fa459de379ddaf051"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the state of the specified joystick remapped as a gamepad. <br /></td></tr>
253
+ <tr class="separator:gadccddea8bce6113fa459de379ddaf051"><td class="memSeparator" colspan="2">&#160;</td></tr>
254
+ <tr class="memitem:gaba1f022c5eb07dfac421df34cdcd31dd" id="r_gaba1f022c5eb07dfac421df34cdcd31dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaba1f022c5eb07dfac421df34cdcd31dd">glfwSetClipboardString</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, const char *string)</td></tr>
255
+ <tr class="memdesc:gaba1f022c5eb07dfac421df34cdcd31dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the clipboard to the specified string. <br /></td></tr>
256
+ <tr class="separator:gaba1f022c5eb07dfac421df34cdcd31dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
257
+ <tr class="memitem:ga71a5b20808ea92193d65c21b82580355" id="r_ga71a5b20808ea92193d65c21b82580355"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga71a5b20808ea92193d65c21b82580355">glfwGetClipboardString</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr>
258
+ <tr class="memdesc:ga71a5b20808ea92193d65c21b82580355"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the contents of the clipboard as a string. <br /></td></tr>
259
+ <tr class="separator:ga71a5b20808ea92193d65c21b82580355"><td class="memSeparator" colspan="2">&#160;</td></tr>
260
+ <tr class="memitem:gaa6cf4e7a77158a3b8fd00328b1720a4a" id="r_gaa6cf4e7a77158a3b8fd00328b1720a4a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a">glfwGetTime</a> (void)</td></tr>
261
+ <tr class="memdesc:gaa6cf4e7a77158a3b8fd00328b1720a4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the GLFW time. <br /></td></tr>
262
+ <tr class="separator:gaa6cf4e7a77158a3b8fd00328b1720a4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
263
+ <tr class="memitem:gaf59589ef6e8b8c8b5ad184b25afd4dc0" id="r_gaf59589ef6e8b8c8b5ad184b25afd4dc0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#gaf59589ef6e8b8c8b5ad184b25afd4dc0">glfwSetTime</a> (double time)</td></tr>
264
+ <tr class="memdesc:gaf59589ef6e8b8c8b5ad184b25afd4dc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the GLFW time. <br /></td></tr>
265
+ <tr class="separator:gaf59589ef6e8b8c8b5ad184b25afd4dc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
266
+ <tr class="memitem:ga09b2bd37d328e0b9456c7ec575cc26aa" id="r_ga09b2bd37d328e0b9456c7ec575cc26aa"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga09b2bd37d328e0b9456c7ec575cc26aa">glfwGetTimerValue</a> (void)</td></tr>
267
+ <tr class="memdesc:ga09b2bd37d328e0b9456c7ec575cc26aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current value of the raw timer. <br /></td></tr>
268
+ <tr class="separator:ga09b2bd37d328e0b9456c7ec575cc26aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
269
+ <tr class="memitem:ga3289ee876572f6e91f06df3a24824443" id="r_ga3289ee876572f6e91f06df3a24824443"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__input.html#ga3289ee876572f6e91f06df3a24824443">glfwGetTimerFrequency</a> (void)</td></tr>
270
+ <tr class="memdesc:ga3289ee876572f6e91f06df3a24824443"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the frequency, in Hz, of the raw timer. <br /></td></tr>
271
+ <tr class="separator:ga3289ee876572f6e91f06df3a24824443"><td class="memSeparator" colspan="2">&#160;</td></tr>
272
+ </table>
273
+ <h2 class="groupheader">Macro Definition Documentation</h2>
274
+ <a id="gada11d965c4da13090ad336e030e4d11f" name="gada11d965c4da13090ad336e030e4d11f"></a>
275
+ <h2 class="memtitle"><span class="permalink"><a href="#gada11d965c4da13090ad336e030e4d11f">&#9670;&#160;</a></span>GLFW_RELEASE</h2>
276
+
277
+ <div class="memitem">
278
+ <div class="memproto">
279
+ <table class="memname">
280
+ <tr>
281
+ <td class="memname">#define GLFW_RELEASE&#160;&#160;&#160;0</td>
282
+ </tr>
283
+ </table>
284
+ </div><div class="memdoc">
285
+ <p>The key or mouse button was released. </p>
286
+
287
+ </div>
288
+ </div>
289
+ <a id="ga2485743d0b59df3791c45951c4195265" name="ga2485743d0b59df3791c45951c4195265"></a>
290
+ <h2 class="memtitle"><span class="permalink"><a href="#ga2485743d0b59df3791c45951c4195265">&#9670;&#160;</a></span>GLFW_PRESS</h2>
291
+
292
+ <div class="memitem">
293
+ <div class="memproto">
294
+ <table class="memname">
295
+ <tr>
296
+ <td class="memname">#define GLFW_PRESS&#160;&#160;&#160;1</td>
297
+ </tr>
298
+ </table>
299
+ </div><div class="memdoc">
300
+ <p>The key or mouse button was pressed. </p>
301
+
302
+ </div>
303
+ </div>
304
+ <a id="gac96fd3b9fc66c6f0eebaf6532595338f" name="gac96fd3b9fc66c6f0eebaf6532595338f"></a>
305
+ <h2 class="memtitle"><span class="permalink"><a href="#gac96fd3b9fc66c6f0eebaf6532595338f">&#9670;&#160;</a></span>GLFW_REPEAT</h2>
306
+
307
+ <div class="memitem">
308
+ <div class="memproto">
309
+ <table class="memname">
310
+ <tr>
311
+ <td class="memname">#define GLFW_REPEAT&#160;&#160;&#160;2</td>
312
+ </tr>
313
+ </table>
314
+ </div><div class="memdoc">
315
+ <p>The key was held down until it repeated. </p>
316
+
317
+ </div>
318
+ </div>
319
+ <a id="ga99aacc875b6b27a072552631e13775c7" name="ga99aacc875b6b27a072552631e13775c7"></a>
320
+ <h2 class="memtitle"><span class="permalink"><a href="#ga99aacc875b6b27a072552631e13775c7">&#9670;&#160;</a></span>GLFW_KEY_UNKNOWN</h2>
321
+
322
+ <div class="memitem">
323
+ <div class="memproto">
324
+ <table class="memname">
325
+ <tr>
326
+ <td class="memname">#define GLFW_KEY_UNKNOWN&#160;&#160;&#160;-1</td>
327
+ </tr>
328
+ </table>
329
+ </div><div class="memdoc">
330
+
331
+ </div>
332
+ </div>
333
+ <h2 class="groupheader">Typedef Documentation</h2>
334
+ <a id="ga89261ae18c75e863aaf2656ecdd238f4" name="ga89261ae18c75e863aaf2656ecdd238f4"></a>
335
+ <h2 class="memtitle"><span class="permalink"><a href="#ga89261ae18c75e863aaf2656ecdd238f4">&#9670;&#160;</a></span>GLFWcursor</h2>
336
+
337
+ <div class="memitem">
338
+ <div class="memproto">
339
+ <table class="memname">
340
+ <tr>
341
+ <td class="memname">typedef struct <a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a> <a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a></td>
342
+ </tr>
343
+ </table>
344
+ </div><div class="memdoc">
345
+ <p>Opaque cursor object.</p>
346
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_object">Cursor objects</a></dd></dl>
347
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl>
348
+
349
+ </div>
350
+ </div>
351
+ <a id="ga0184dcb59f6d85d735503dcaae809727" name="ga0184dcb59f6d85d735503dcaae809727"></a>
352
+ <h2 class="memtitle"><span class="permalink"><a href="#ga0184dcb59f6d85d735503dcaae809727">&#9670;&#160;</a></span>GLFWmousebuttonfun</h2>
353
+
354
+ <div class="memitem">
355
+ <div class="memproto">
356
+ <table class="memname">
357
+ <tr>
358
+ <td class="memname">typedef void(* GLFWmousebuttonfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int button, int action, int mods)</td>
359
+ </tr>
360
+ </table>
361
+ </div><div class="memdoc">
362
+ <p>This is the function pointer type for mouse button callback functions. A mouse button callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> button, <span class="keywordtype">int</span> action, <span class="keywordtype">int</span> mods)</div>
363
+ <div class="ttc" id="agroup__window_html_ga3c96d80d363e67d13a41b5d1821f3242"><div class="ttname"><a href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a></div><div class="ttdeci">struct GLFWwindow GLFWwindow</div><div class="ttdoc">Opaque window object.</div><div class="ttdef"><b>Definition</b> glfw3.h:1403</div></div>
364
+ </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
365
+ <table class="params">
366
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that received the event. </td></tr>
367
+ <tr><td class="paramdir">[in]</td><td class="paramname">button</td><td>The <a class="el" href="group__buttons.html">mouse button</a> that was pressed or released. </td></tr>
368
+ <tr><td class="paramdir">[in]</td><td class="paramname">action</td><td>One of <code>GLFW_PRESS</code> or <code>GLFW_RELEASE</code>. Future releases may add more actions. </td></tr>
369
+ <tr><td class="paramdir">[in]</td><td class="paramname">mods</td><td>Bit field describing which <a class="el" href="group__mods.html">modifier keys</a> were held down.</td></tr>
370
+ </table>
371
+ </dd>
372
+ </dl>
373
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_mouse_button">Mouse button input</a> </dd>
374
+ <dd>
375
+ <a class="el" href="group__input.html#ga6ab84420974d812bee700e45284a723c">glfwSetMouseButtonCallback</a></dd></dl>
376
+ <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle and modifier mask parameters. </dd></dl>
377
+
378
+ </div>
379
+ </div>
380
+ <a id="gad6fae41b3ac2e4209aaa87b596c57f68" name="gad6fae41b3ac2e4209aaa87b596c57f68"></a>
381
+ <h2 class="memtitle"><span class="permalink"><a href="#gad6fae41b3ac2e4209aaa87b596c57f68">&#9670;&#160;</a></span>GLFWcursorposfun</h2>
382
+
383
+ <div class="memitem">
384
+ <div class="memproto">
385
+ <table class="memname">
386
+ <tr>
387
+ <td class="memname">typedef void(* GLFWcursorposfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, double xpos, double ypos)</td>
388
+ </tr>
389
+ </table>
390
+ </div><div class="memdoc">
391
+ <p>This is the function pointer type for cursor position callbacks. A cursor position callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">double</span> xpos, <span class="keywordtype">double</span> ypos);</div>
392
+ </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
393
+ <table class="params">
394
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that received the event. </td></tr>
395
+ <tr><td class="paramdir">[in]</td><td class="paramname">xpos</td><td>The new cursor x-coordinate, relative to the left edge of the content area. </td></tr>
396
+ <tr><td class="paramdir">[in]</td><td class="paramname">ypos</td><td>The new cursor y-coordinate, relative to the top edge of the content area.</td></tr>
397
+ </table>
398
+ </dd>
399
+ </dl>
400
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_pos">Cursor position</a> </dd>
401
+ <dd>
402
+ <a class="el" href="group__input.html#gac1f879ab7435d54d4d79bb469fe225d7">glfwSetCursorPosCallback</a></dd></dl>
403
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>GLFWmouseposfun</code>. </dd></dl>
404
+
405
+ </div>
406
+ </div>
407
+ <a id="gaa93dc4818ac9ab32532909d53a337cbe" name="gaa93dc4818ac9ab32532909d53a337cbe"></a>
408
+ <h2 class="memtitle"><span class="permalink"><a href="#gaa93dc4818ac9ab32532909d53a337cbe">&#9670;&#160;</a></span>GLFWcursorenterfun</h2>
409
+
410
+ <div class="memitem">
411
+ <div class="memproto">
412
+ <table class="memname">
413
+ <tr>
414
+ <td class="memname">typedef void(* GLFWcursorenterfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int entered)</td>
415
+ </tr>
416
+ </table>
417
+ </div><div class="memdoc">
418
+ <p>This is the function pointer type for cursor enter/leave callbacks. A cursor enter/leave callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> entered)</div>
419
+ </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
420
+ <table class="params">
421
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that received the event. </td></tr>
422
+ <tr><td class="paramdir">[in]</td><td class="paramname">entered</td><td><code>GLFW_TRUE</code> if the cursor entered the window's content area, or <code>GLFW_FALSE</code> if it left it.</td></tr>
423
+ </table>
424
+ </dd>
425
+ </dl>
426
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_enter">Cursor enter/leave events</a> </dd>
427
+ <dd>
428
+ <a class="el" href="group__input.html#gad27f8ad0142c038a281466c0966817d8">glfwSetCursorEnterCallback</a></dd></dl>
429
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl>
430
+
431
+ </div>
432
+ </div>
433
+ <a id="gaf656112c33de3efdb227fa58f0134cf5" name="gaf656112c33de3efdb227fa58f0134cf5"></a>
434
+ <h2 class="memtitle"><span class="permalink"><a href="#gaf656112c33de3efdb227fa58f0134cf5">&#9670;&#160;</a></span>GLFWscrollfun</h2>
435
+
436
+ <div class="memitem">
437
+ <div class="memproto">
438
+ <table class="memname">
439
+ <tr>
440
+ <td class="memname">typedef void(* GLFWscrollfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, double xoffset, double yoffset)</td>
441
+ </tr>
442
+ </table>
443
+ </div><div class="memdoc">
444
+ <p>This is the function pointer type for scroll callbacks. A scroll callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">double</span> xoffset, <span class="keywordtype">double</span> yoffset)</div>
445
+ </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
446
+ <table class="params">
447
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that received the event. </td></tr>
448
+ <tr><td class="paramdir">[in]</td><td class="paramname">xoffset</td><td>The scroll offset along the x-axis. </td></tr>
449
+ <tr><td class="paramdir">[in]</td><td class="paramname">yoffset</td><td>The scroll offset along the y-axis.</td></tr>
450
+ </table>
451
+ </dd>
452
+ </dl>
453
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#scrolling">Scroll input</a> </dd>
454
+ <dd>
455
+ <a class="el" href="group__input.html#ga571e45a030ae4061f746ed56cb76aede">glfwSetScrollCallback</a></dd></dl>
456
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>GLFWmousewheelfun</code>. </dd></dl>
457
+
458
+ </div>
459
+ </div>
460
+ <a id="ga5bd751b27b90f865d2ea613533f0453c" name="ga5bd751b27b90f865d2ea613533f0453c"></a>
461
+ <h2 class="memtitle"><span class="permalink"><a href="#ga5bd751b27b90f865d2ea613533f0453c">&#9670;&#160;</a></span>GLFWkeyfun</h2>
462
+
463
+ <div class="memitem">
464
+ <div class="memproto">
465
+ <table class="memname">
466
+ <tr>
467
+ <td class="memname">typedef void(* GLFWkeyfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int key, int scancode, int action, int mods)</td>
468
+ </tr>
469
+ </table>
470
+ </div><div class="memdoc">
471
+ <p>This is the function pointer type for keyboard key callbacks. A keyboard key callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> key, <span class="keywordtype">int</span> scancode, <span class="keywordtype">int</span> action, <span class="keywordtype">int</span> mods)</div>
472
+ </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
473
+ <table class="params">
474
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that received the event. </td></tr>
475
+ <tr><td class="paramdir">[in]</td><td class="paramname">key</td><td>The <a class="el" href="group__keys.html">keyboard key</a> that was pressed or released. </td></tr>
476
+ <tr><td class="paramdir">[in]</td><td class="paramname">scancode</td><td>The platform-specific scancode of the key. </td></tr>
477
+ <tr><td class="paramdir">[in]</td><td class="paramname">action</td><td><code>GLFW_PRESS</code>, <code>GLFW_RELEASE</code> or <code>GLFW_REPEAT</code>. Future releases may add more actions. </td></tr>
478
+ <tr><td class="paramdir">[in]</td><td class="paramname">mods</td><td>Bit field describing which <a class="el" href="group__mods.html">modifier keys</a> were held down.</td></tr>
479
+ </table>
480
+ </dd>
481
+ </dl>
482
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_key">Key input</a> </dd>
483
+ <dd>
484
+ <a class="el" href="group__input.html#ga1caf18159767e761185e49a3be019f8d">glfwSetKeyCallback</a></dd></dl>
485
+ <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle, scancode and modifier mask parameters. </dd></dl>
486
+
487
+ </div>
488
+ </div>
489
+ <a id="ga1ab90a55cf3f58639b893c0f4118cb6e" name="ga1ab90a55cf3f58639b893c0f4118cb6e"></a>
490
+ <h2 class="memtitle"><span class="permalink"><a href="#ga1ab90a55cf3f58639b893c0f4118cb6e">&#9670;&#160;</a></span>GLFWcharfun</h2>
491
+
492
+ <div class="memitem">
493
+ <div class="memproto">
494
+ <table class="memname">
495
+ <tr>
496
+ <td class="memname">typedef void(* GLFWcharfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, unsigned int codepoint)</td>
497
+ </tr>
498
+ </table>
499
+ </div><div class="memdoc">
500
+ <p>This is the function pointer type for Unicode character callbacks. A Unicode character callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> codepoint)</div>
501
+ </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
502
+ <table class="params">
503
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that received the event. </td></tr>
504
+ <tr><td class="paramdir">[in]</td><td class="paramname">codepoint</td><td>The Unicode code point of the character.</td></tr>
505
+ </table>
506
+ </dd>
507
+ </dl>
508
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_char">Text input</a> </dd>
509
+ <dd>
510
+ <a class="el" href="group__input.html#gab25c4a220fd8f5717718dbc487828996">glfwSetCharCallback</a></dd></dl>
511
+ <dl class="section since"><dt>Since</dt><dd>Added in version 2.4. <b>GLFW 3:</b> Added window handle parameter. </dd></dl>
512
+
513
+ </div>
514
+ </div>
515
+ <a id="gac3cf64f90b6219c05ac7b7822d5a4b8f" name="gac3cf64f90b6219c05ac7b7822d5a4b8f"></a>
516
+ <h2 class="memtitle"><span class="permalink"><a href="#gac3cf64f90b6219c05ac7b7822d5a4b8f">&#9670;&#160;</a></span>GLFWcharmodsfun</h2>
517
+
518
+ <div class="memitem">
519
+ <div class="memproto">
520
+ <table class="memname">
521
+ <tr>
522
+ <td class="memname">typedef void(* GLFWcharmodsfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, unsigned int codepoint, int mods)</td>
523
+ </tr>
524
+ </table>
525
+ </div><div class="memdoc">
526
+ <p>This is the function pointer type for Unicode character with modifiers callbacks. It is called for each input character, regardless of what modifier keys are held down. A Unicode character with modifiers callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> codepoint, <span class="keywordtype">int</span> mods)</div>
527
+ </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
528
+ <table class="params">
529
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that received the event. </td></tr>
530
+ <tr><td class="paramdir">[in]</td><td class="paramname">codepoint</td><td>The Unicode code point of the character. </td></tr>
531
+ <tr><td class="paramdir">[in]</td><td class="paramname">mods</td><td>Bit field describing which <a class="el" href="group__mods.html">modifier keys</a> were held down.</td></tr>
532
+ </table>
533
+ </dd>
534
+ </dl>
535
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_char">Text input</a> </dd>
536
+ <dd>
537
+ <a class="el" href="group__input.html#ga0b7f4ad13c2b17435ff13b6dcfb4e43c">glfwSetCharModsCallback</a></dd></dl>
538
+ <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>Scheduled for removal in version 4.0.</dd></dl>
539
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl>
540
+
541
+ </div>
542
+ </div>
543
+ <a id="gaaba73c3274062c18723b7f05862d94b2" name="gaaba73c3274062c18723b7f05862d94b2"></a>
544
+ <h2 class="memtitle"><span class="permalink"><a href="#gaaba73c3274062c18723b7f05862d94b2">&#9670;&#160;</a></span>GLFWdropfun</h2>
545
+
546
+ <div class="memitem">
547
+ <div class="memproto">
548
+ <table class="memname">
549
+ <tr>
550
+ <td class="memname">typedef void(* GLFWdropfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int path_count, const char *paths[])</td>
551
+ </tr>
552
+ </table>
553
+ </div><div class="memdoc">
554
+ <p>This is the function pointer type for path drop callbacks. A path drop callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> path_count, <span class="keyword">const</span> <span class="keywordtype">char</span>* paths[])</div>
555
+ </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
556
+ <table class="params">
557
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that received the event. </td></tr>
558
+ <tr><td class="paramdir">[in]</td><td class="paramname">path_count</td><td>The number of dropped paths. </td></tr>
559
+ <tr><td class="paramdir">[in]</td><td class="paramname">paths</td><td>The UTF-8 encoded file and/or directory path names.</td></tr>
560
+ </table>
561
+ </dd>
562
+ </dl>
563
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The path array and its strings are valid until the callback function returns.</dd></dl>
564
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#path_drop">Path drop input</a> </dd>
565
+ <dd>
566
+ <a class="el" href="group__input.html#gab773f0ee0a07cff77a210cea40bc1f6b">glfwSetDropCallback</a></dd></dl>
567
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl>
568
+
569
+ </div>
570
+ </div>
571
+ <a id="gaa21ad5986ae9a26077a40142efb56243" name="gaa21ad5986ae9a26077a40142efb56243"></a>
572
+ <h2 class="memtitle"><span class="permalink"><a href="#gaa21ad5986ae9a26077a40142efb56243">&#9670;&#160;</a></span>GLFWjoystickfun</h2>
573
+
574
+ <div class="memitem">
575
+ <div class="memproto">
576
+ <table class="memname">
577
+ <tr>
578
+ <td class="memname">typedef void(* GLFWjoystickfun) (int jid, int event)</td>
579
+ </tr>
580
+ </table>
581
+ </div><div class="memdoc">
582
+ <p>This is the function pointer type for joystick configuration callbacks. A joystick configuration callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<span class="keywordtype">int</span> jid, <span class="keywordtype">int</span> event)</div>
583
+ </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
584
+ <table class="params">
585
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The joystick that was connected or disconnected. </td></tr>
586
+ <tr><td class="paramdir">[in]</td><td class="paramname">event</td><td>One of <code>GLFW_CONNECTED</code> or <code>GLFW_DISCONNECTED</code>. Future releases may add more events.</td></tr>
587
+ </table>
588
+ </dd>
589
+ </dl>
590
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#joystick_event">Joystick configuration changes</a> </dd>
591
+ <dd>
592
+ <a class="el" href="group__input.html#ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c">glfwSetJoystickCallback</a></dd></dl>
593
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl>
594
+
595
+ </div>
596
+ </div>
597
+ <a id="ga61acfb1f28f751438dd221225c5e725d" name="ga61acfb1f28f751438dd221225c5e725d"></a>
598
+ <h2 class="memtitle"><span class="permalink"><a href="#ga61acfb1f28f751438dd221225c5e725d">&#9670;&#160;</a></span>GLFWgamepadstate</h2>
599
+
600
+ <div class="memitem">
601
+ <div class="memproto">
602
+ <table class="memname">
603
+ <tr>
604
+ <td class="memname">typedef struct <a class="el" href="struct_g_l_f_wgamepadstate.html">GLFWgamepadstate</a> <a class="el" href="struct_g_l_f_wgamepadstate.html">GLFWgamepadstate</a></td>
605
+ </tr>
606
+ </table>
607
+ </div><div class="memdoc">
608
+ <p>This describes the input state of a gamepad.</p>
609
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#gamepad">Gamepad input</a> </dd>
610
+ <dd>
611
+ <a class="el" href="group__input.html#gadccddea8bce6113fa459de379ddaf051">glfwGetGamepadState</a></dd></dl>
612
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
613
+
614
+ </div>
615
+ </div>
616
+ <h2 class="groupheader">Function Documentation</h2>
617
+ <a id="gaf5b859dbe19bdf434e42695ea45cc5f4" name="gaf5b859dbe19bdf434e42695ea45cc5f4"></a>
618
+ <h2 class="memtitle"><span class="permalink"><a href="#gaf5b859dbe19bdf434e42695ea45cc5f4">&#9670;&#160;</a></span>glfwGetInputMode()</h2>
619
+
620
+ <div class="memitem">
621
+ <div class="memproto">
622
+ <table class="memname">
623
+ <tr>
624
+ <td class="memname">int glfwGetInputMode </td>
625
+ <td>(</td>
626
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
627
+ <td class="paramname"><em>window</em>, </td>
628
+ </tr>
629
+ <tr>
630
+ <td class="paramkey"></td>
631
+ <td></td>
632
+ <td class="paramtype">int&#160;</td>
633
+ <td class="paramname"><em>mode</em>&#160;</td>
634
+ </tr>
635
+ <tr>
636
+ <td></td>
637
+ <td>)</td>
638
+ <td></td><td></td>
639
+ </tr>
640
+ </table>
641
+ </div><div class="memdoc">
642
+ <p>This function returns the value of an input option for the specified window. The mode must be one of <a class="el" href="input_guide.html#GLFW_CURSOR">GLFW_CURSOR</a>, <a class="el" href="input_guide.html#GLFW_STICKY_KEYS">GLFW_STICKY_KEYS</a>, <a class="el" href="input_guide.html#GLFW_STICKY_MOUSE_BUTTONS">GLFW_STICKY_MOUSE_BUTTONS</a>, <a class="el" href="input_guide.html#GLFW_LOCK_KEY_MODS">GLFW_LOCK_KEY_MODS</a> or <a class="el" href="input_guide.html#GLFW_RAW_MOUSE_MOTION">GLFW_RAW_MOUSE_MOTION</a>.</p>
643
+ <dl class="params"><dt>Parameters</dt><dd>
644
+ <table class="params">
645
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to query. </td></tr>
646
+ <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>One of <code>GLFW_CURSOR</code>, <code>GLFW_STICKY_KEYS</code>, <code>GLFW_STICKY_MOUSE_BUTTONS</code>, <code>GLFW_LOCK_KEY_MODS</code> or <code>GLFW_RAW_MOUSE_MOTION</code>.</td></tr>
647
+ </table>
648
+ </dd>
649
+ </dl>
650
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl>
651
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
652
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="group__input.html#gaa92336e173da9c8834558b54ee80563b">glfwSetInputMode</a></dd></dl>
653
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl>
654
+
655
+ </div>
656
+ </div>
657
+ <a id="gaa92336e173da9c8834558b54ee80563b" name="gaa92336e173da9c8834558b54ee80563b"></a>
658
+ <h2 class="memtitle"><span class="permalink"><a href="#gaa92336e173da9c8834558b54ee80563b">&#9670;&#160;</a></span>glfwSetInputMode()</h2>
659
+
660
+ <div class="memitem">
661
+ <div class="memproto">
662
+ <table class="memname">
663
+ <tr>
664
+ <td class="memname">void glfwSetInputMode </td>
665
+ <td>(</td>
666
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
667
+ <td class="paramname"><em>window</em>, </td>
668
+ </tr>
669
+ <tr>
670
+ <td class="paramkey"></td>
671
+ <td></td>
672
+ <td class="paramtype">int&#160;</td>
673
+ <td class="paramname"><em>mode</em>, </td>
674
+ </tr>
675
+ <tr>
676
+ <td class="paramkey"></td>
677
+ <td></td>
678
+ <td class="paramtype">int&#160;</td>
679
+ <td class="paramname"><em>value</em>&#160;</td>
680
+ </tr>
681
+ <tr>
682
+ <td></td>
683
+ <td>)</td>
684
+ <td></td><td></td>
685
+ </tr>
686
+ </table>
687
+ </div><div class="memdoc">
688
+ <p>This function sets an input mode option for the specified window. The mode must be one of <a class="el" href="input_guide.html#GLFW_CURSOR">GLFW_CURSOR</a>, <a class="el" href="input_guide.html#GLFW_STICKY_KEYS">GLFW_STICKY_KEYS</a>, <a class="el" href="input_guide.html#GLFW_STICKY_MOUSE_BUTTONS">GLFW_STICKY_MOUSE_BUTTONS</a>, <a class="el" href="input_guide.html#GLFW_LOCK_KEY_MODS">GLFW_LOCK_KEY_MODS</a> or <a class="el" href="input_guide.html#GLFW_RAW_MOUSE_MOTION">GLFW_RAW_MOUSE_MOTION</a>.</p>
689
+ <p>If the mode is <code>GLFW_CURSOR</code>, the value must be one of the following cursor modes:</p><ul>
690
+ <li><code>GLFW_CURSOR_NORMAL</code> makes the cursor visible and behaving normally.</li>
691
+ <li><code>GLFW_CURSOR_HIDDEN</code> makes the cursor invisible when it is over the content area of the window but does not restrict the cursor from leaving.</li>
692
+ <li><code>GLFW_CURSOR_DISABLED</code> hides and grabs the cursor, providing virtual and unlimited cursor movement. This is useful for implementing for example 3D camera controls.</li>
693
+ <li><code>GLFW_CURSOR_CAPTURED</code> makes the cursor visible and confines it to the content area of the window.</li>
694
+ </ul>
695
+ <p>If the mode is <code>GLFW_STICKY_KEYS</code>, the value must be either <code>GLFW_TRUE</code> to enable sticky keys, or <code>GLFW_FALSE</code> to disable it. If sticky keys are enabled, a key press will ensure that <a class="el" href="group__input.html#gadd341da06bc8d418b4dc3a3518af9ad2">glfwGetKey</a> returns <code>GLFW_PRESS</code> the next time it is called even if the key had been released before the call. This is useful when you are only interested in whether keys have been pressed but not when or in which order.</p>
696
+ <p>If the mode is <code>GLFW_STICKY_MOUSE_BUTTONS</code>, the value must be either <code>GLFW_TRUE</code> to enable sticky mouse buttons, or <code>GLFW_FALSE</code> to disable it. If sticky mouse buttons are enabled, a mouse button press will ensure that <a class="el" href="group__input.html#gac1473feacb5996c01a7a5a33b5066704">glfwGetMouseButton</a> returns <code>GLFW_PRESS</code> the next time it is called even if the mouse button had been released before the call. This is useful when you are only interested in whether mouse buttons have been pressed but not when or in which order.</p>
697
+ <p>If the mode is <code>GLFW_LOCK_KEY_MODS</code>, the value must be either <code>GLFW_TRUE</code> to enable lock key modifier bits, or <code>GLFW_FALSE</code> to disable them. If enabled, callbacks that receive modifier bits will also have the <a class="el" href="group__mods.html#gaefeef8fcf825a6e43e241b337897200f">GLFW_MOD_CAPS_LOCK</a> bit set when the event was generated with Caps Lock on, and the <a class="el" href="group__mods.html#ga64e020b8a42af8376e944baf61feecbe">GLFW_MOD_NUM_LOCK</a> bit when Num Lock was on.</p>
698
+ <p>If the mode is <code>GLFW_RAW_MOUSE_MOTION</code>, the value must be either <code>GLFW_TRUE</code> to enable raw (unscaled and unaccelerated) mouse motion when the cursor is disabled, or <code>GLFW_FALSE</code> to disable it. If raw motion is not supported, attempting to set this will emit <a class="el" href="group__errors.html#ga526fba20a01504a8086c763b6ca53ce5">GLFW_FEATURE_UNAVAILABLE</a>. Call <a class="el" href="group__input.html#gae4ee0dbd0d256183e1ea4026d897e1c2">glfwRawMouseMotionSupported</a> to check for support.</p>
699
+ <dl class="params"><dt>Parameters</dt><dd>
700
+ <table class="params">
701
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose input mode to set. </td></tr>
702
+ <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>One of <code>GLFW_CURSOR</code>, <code>GLFW_STICKY_KEYS</code>, <code>GLFW_STICKY_MOUSE_BUTTONS</code>, <code>GLFW_LOCK_KEY_MODS</code> or <code>GLFW_RAW_MOUSE_MOTION</code>. </td></tr>
703
+ <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The new value of the specified input mode.</td></tr>
704
+ </table>
705
+ </dd>
706
+ </dl>
707
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>, <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a> and <a class="el" href="group__errors.html#ga526fba20a01504a8086c763b6ca53ce5">GLFW_FEATURE_UNAVAILABLE</a> (see above).</dd></dl>
708
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
709
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="group__input.html#gaf5b859dbe19bdf434e42695ea45cc5f4">glfwGetInputMode</a></dd></dl>
710
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwEnable</code> and <code>glfwDisable</code>. </dd></dl>
711
+
712
+ </div>
713
+ </div>
714
+ <a id="gae4ee0dbd0d256183e1ea4026d897e1c2" name="gae4ee0dbd0d256183e1ea4026d897e1c2"></a>
715
+ <h2 class="memtitle"><span class="permalink"><a href="#gae4ee0dbd0d256183e1ea4026d897e1c2">&#9670;&#160;</a></span>glfwRawMouseMotionSupported()</h2>
716
+
717
+ <div class="memitem">
718
+ <div class="memproto">
719
+ <table class="memname">
720
+ <tr>
721
+ <td class="memname">int glfwRawMouseMotionSupported </td>
722
+ <td>(</td>
723
+ <td class="paramtype">void&#160;</td>
724
+ <td class="paramname"></td><td>)</td>
725
+ <td></td>
726
+ </tr>
727
+ </table>
728
+ </div><div class="memdoc">
729
+ <p>This function returns whether raw mouse motion is supported on the current system. This status does not change after GLFW has been initialized so you only need to check this once. If you attempt to enable raw motion on a system that does not support it, <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a> will be emitted.</p>
730
+ <p>Raw mouse motion is closer to the actual motion of the mouse across a surface. It is not affected by the scaling and acceleration applied to the motion of the desktop cursor. That processing is suitable for a cursor while raw motion is better for controlling for example a 3D camera. Because of this, raw mouse motion is only provided when the cursor is disabled.</p>
731
+ <dl class="section return"><dt>Returns</dt><dd><code>GLFW_TRUE</code> if raw mouse motion is supported on the current machine, or <code>GLFW_FALSE</code> otherwise.</dd></dl>
732
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
733
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
734
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#raw_mouse_motion">Raw mouse motion</a> </dd>
735
+ <dd>
736
+ <a class="el" href="group__input.html#gaa92336e173da9c8834558b54ee80563b">glfwSetInputMode</a></dd></dl>
737
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
738
+
739
+ </div>
740
+ </div>
741
+ <a id="gaeaed62e69c3bd62b7ff8f7b19913ce4f" name="gaeaed62e69c3bd62b7ff8f7b19913ce4f"></a>
742
+ <h2 class="memtitle"><span class="permalink"><a href="#gaeaed62e69c3bd62b7ff8f7b19913ce4f">&#9670;&#160;</a></span>glfwGetKeyName()</h2>
743
+
744
+ <div class="memitem">
745
+ <div class="memproto">
746
+ <table class="memname">
747
+ <tr>
748
+ <td class="memname">const char * glfwGetKeyName </td>
749
+ <td>(</td>
750
+ <td class="paramtype">int&#160;</td>
751
+ <td class="paramname"><em>key</em>, </td>
752
+ </tr>
753
+ <tr>
754
+ <td class="paramkey"></td>
755
+ <td></td>
756
+ <td class="paramtype">int&#160;</td>
757
+ <td class="paramname"><em>scancode</em>&#160;</td>
758
+ </tr>
759
+ <tr>
760
+ <td></td>
761
+ <td>)</td>
762
+ <td></td><td></td>
763
+ </tr>
764
+ </table>
765
+ </div><div class="memdoc">
766
+ <p>This function returns the name of the specified printable key, encoded as UTF-8. This is typically the character that key would produce without any modifier keys, intended for displaying key bindings to the user. For dead keys, it is typically the diacritic it would add to a character.</p>
767
+ <p><b>Do not use this function</b> for <a class="el" href="input_guide.html#input_char">text input</a>. You will break text input for many languages even if it happens to work for yours.</p>
768
+ <p>If the key is <code>GLFW_KEY_UNKNOWN</code>, the scancode is used to identify the key, otherwise the scancode is ignored. If you specify a non-printable key, or <code>GLFW_KEY_UNKNOWN</code> and a scancode that maps to a non-printable key, this function returns <code>NULL</code> but does not emit an error.</p>
769
+ <p>This behavior allows you to always pass in the arguments in the <a class="el" href="input_guide.html#input_key">key callback</a> without modification.</p>
770
+ <p>The printable keys are:</p><ul>
771
+ <li><code>GLFW_KEY_APOSTROPHE</code></li>
772
+ <li><code>GLFW_KEY_COMMA</code></li>
773
+ <li><code>GLFW_KEY_MINUS</code></li>
774
+ <li><code>GLFW_KEY_PERIOD</code></li>
775
+ <li><code>GLFW_KEY_SLASH</code></li>
776
+ <li><code>GLFW_KEY_SEMICOLON</code></li>
777
+ <li><code>GLFW_KEY_EQUAL</code></li>
778
+ <li><code>GLFW_KEY_LEFT_BRACKET</code></li>
779
+ <li><code>GLFW_KEY_RIGHT_BRACKET</code></li>
780
+ <li><code>GLFW_KEY_BACKSLASH</code></li>
781
+ <li><code>GLFW_KEY_WORLD_1</code></li>
782
+ <li><code>GLFW_KEY_WORLD_2</code></li>
783
+ <li><code>GLFW_KEY_0</code> to <code>GLFW_KEY_9</code></li>
784
+ <li><code>GLFW_KEY_A</code> to <code>GLFW_KEY_Z</code></li>
785
+ <li><code>GLFW_KEY_KP_0</code> to <code>GLFW_KEY_KP_9</code></li>
786
+ <li><code>GLFW_KEY_KP_DECIMAL</code></li>
787
+ <li><code>GLFW_KEY_KP_DIVIDE</code></li>
788
+ <li><code>GLFW_KEY_KP_MULTIPLY</code></li>
789
+ <li><code>GLFW_KEY_KP_SUBTRACT</code></li>
790
+ <li><code>GLFW_KEY_KP_ADD</code></li>
791
+ <li><code>GLFW_KEY_KP_EQUAL</code></li>
792
+ </ul>
793
+ <p>Names for printable keys depend on keyboard layout, while names for non-printable keys are the same across layouts but depend on the application language and should be localized along with other user interface text.</p>
794
+ <dl class="params"><dt>Parameters</dt><dd>
795
+ <table class="params">
796
+ <tr><td class="paramdir">[in]</td><td class="paramname">key</td><td>The key to query, or <code>GLFW_KEY_UNKNOWN</code>. </td></tr>
797
+ <tr><td class="paramdir">[in]</td><td class="paramname">scancode</td><td>The scancode of the key to query. </td></tr>
798
+ </table>
799
+ </dd>
800
+ </dl>
801
+ <dl class="section return"><dt>Returns</dt><dd>The UTF-8 encoded, layout-specific name of the key, or <code>NULL</code>.</dd></dl>
802
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
803
+ <dl class="section remark"><dt>Remarks</dt><dd>The contents of the returned string may change when a keyboard layout change event is received.</dd></dl>
804
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the library is terminated.</dd></dl>
805
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
806
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_key_name">Key names</a></dd></dl>
807
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl>
808
+
809
+ </div>
810
+ </div>
811
+ <a id="ga67ddd1b7dcbbaff03e4a76c0ea67103a" name="ga67ddd1b7dcbbaff03e4a76c0ea67103a"></a>
812
+ <h2 class="memtitle"><span class="permalink"><a href="#ga67ddd1b7dcbbaff03e4a76c0ea67103a">&#9670;&#160;</a></span>glfwGetKeyScancode()</h2>
813
+
814
+ <div class="memitem">
815
+ <div class="memproto">
816
+ <table class="memname">
817
+ <tr>
818
+ <td class="memname">int glfwGetKeyScancode </td>
819
+ <td>(</td>
820
+ <td class="paramtype">int&#160;</td>
821
+ <td class="paramname"><em>key</em></td><td>)</td>
822
+ <td></td>
823
+ </tr>
824
+ </table>
825
+ </div><div class="memdoc">
826
+ <p>This function returns the platform-specific scancode of the specified key.</p>
827
+ <p>If the specified <a class="el" href="group__keys.html">key token</a> corresponds to a physical key not supported on the current platform then this method will return <code>-1</code>. Calling this function with anything other than a key token will return <code>-1</code> and generate a <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> error.</p>
828
+ <dl class="params"><dt>Parameters</dt><dd>
829
+ <table class="params">
830
+ <tr><td class="paramdir">[in]</td><td class="paramname">key</td><td>Any <a class="el" href="group__keys.html">key token</a>. </td></tr>
831
+ </table>
832
+ </dd>
833
+ </dl>
834
+ <dl class="section return"><dt>Returns</dt><dd>The platform-specific scancode for the key, or <code>-1</code> if the key is not supported on the current platform or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
835
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl>
836
+ <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl>
837
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_key">Key input</a></dd></dl>
838
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
839
+
840
+ </div>
841
+ </div>
842
+ <a id="gadd341da06bc8d418b4dc3a3518af9ad2" name="gadd341da06bc8d418b4dc3a3518af9ad2"></a>
843
+ <h2 class="memtitle"><span class="permalink"><a href="#gadd341da06bc8d418b4dc3a3518af9ad2">&#9670;&#160;</a></span>glfwGetKey()</h2>
844
+
845
+ <div class="memitem">
846
+ <div class="memproto">
847
+ <table class="memname">
848
+ <tr>
849
+ <td class="memname">int glfwGetKey </td>
850
+ <td>(</td>
851
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
852
+ <td class="paramname"><em>window</em>, </td>
853
+ </tr>
854
+ <tr>
855
+ <td class="paramkey"></td>
856
+ <td></td>
857
+ <td class="paramtype">int&#160;</td>
858
+ <td class="paramname"><em>key</em>&#160;</td>
859
+ </tr>
860
+ <tr>
861
+ <td></td>
862
+ <td>)</td>
863
+ <td></td><td></td>
864
+ </tr>
865
+ </table>
866
+ </div><div class="memdoc">
867
+ <p>This function returns the last state reported for the specified key to the specified window. The returned state is one of <code>GLFW_PRESS</code> or <code>GLFW_RELEASE</code>. The action <code>GLFW_REPEAT</code> is only reported to the key callback.</p>
868
+ <p>If the <a class="el" href="input_guide.html#GLFW_STICKY_KEYS">GLFW_STICKY_KEYS</a> input mode is enabled, this function returns <code>GLFW_PRESS</code> the first time you call it for a key that was pressed, even if that key has already been released.</p>
869
+ <p>The key functions deal with physical keys, with <a class="el" href="group__keys.html">key tokens</a> named after their use on the standard US keyboard layout. If you want to input text, use the Unicode character callback instead.</p>
870
+ <p>The <a class="el" href="group__mods.html">modifier key bit masks</a> are not key tokens and cannot be used with this function.</p>
871
+ <p><b>Do not use this function</b> to implement <a class="el" href="input_guide.html#input_char">text input</a>.</p>
872
+ <dl class="params"><dt>Parameters</dt><dd>
873
+ <table class="params">
874
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The desired window. </td></tr>
875
+ <tr><td class="paramdir">[in]</td><td class="paramname">key</td><td>The desired <a class="el" href="group__keys.html">keyboard key</a>. <code>GLFW_KEY_UNKNOWN</code> is not a valid key for this function. </td></tr>
876
+ </table>
877
+ </dd>
878
+ </dl>
879
+ <dl class="section return"><dt>Returns</dt><dd>One of <code>GLFW_PRESS</code> or <code>GLFW_RELEASE</code>.</dd></dl>
880
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl>
881
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
882
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_key">Key input</a></dd></dl>
883
+ <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter. </dd></dl>
884
+
885
+ </div>
886
+ </div>
887
+ <a id="gac1473feacb5996c01a7a5a33b5066704" name="gac1473feacb5996c01a7a5a33b5066704"></a>
888
+ <h2 class="memtitle"><span class="permalink"><a href="#gac1473feacb5996c01a7a5a33b5066704">&#9670;&#160;</a></span>glfwGetMouseButton()</h2>
889
+
890
+ <div class="memitem">
891
+ <div class="memproto">
892
+ <table class="memname">
893
+ <tr>
894
+ <td class="memname">int glfwGetMouseButton </td>
895
+ <td>(</td>
896
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
897
+ <td class="paramname"><em>window</em>, </td>
898
+ </tr>
899
+ <tr>
900
+ <td class="paramkey"></td>
901
+ <td></td>
902
+ <td class="paramtype">int&#160;</td>
903
+ <td class="paramname"><em>button</em>&#160;</td>
904
+ </tr>
905
+ <tr>
906
+ <td></td>
907
+ <td>)</td>
908
+ <td></td><td></td>
909
+ </tr>
910
+ </table>
911
+ </div><div class="memdoc">
912
+ <p>This function returns the last state reported for the specified mouse button to the specified window. The returned state is one of <code>GLFW_PRESS</code> or <code>GLFW_RELEASE</code>.</p>
913
+ <p>If the <a class="el" href="input_guide.html#GLFW_STICKY_MOUSE_BUTTONS">GLFW_STICKY_MOUSE_BUTTONS</a> input mode is enabled, this function returns <code>GLFW_PRESS</code> the first time you call it for a mouse button that was pressed, even if that mouse button has already been released.</p>
914
+ <dl class="params"><dt>Parameters</dt><dd>
915
+ <table class="params">
916
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The desired window. </td></tr>
917
+ <tr><td class="paramdir">[in]</td><td class="paramname">button</td><td>The desired <a class="el" href="group__buttons.html">mouse button</a>. </td></tr>
918
+ </table>
919
+ </dd>
920
+ </dl>
921
+ <dl class="section return"><dt>Returns</dt><dd>One of <code>GLFW_PRESS</code> or <code>GLFW_RELEASE</code>.</dd></dl>
922
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl>
923
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
924
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_mouse_button">Mouse button input</a></dd></dl>
925
+ <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter. </dd></dl>
926
+
927
+ </div>
928
+ </div>
929
+ <a id="ga01d37b6c40133676b9cea60ca1d7c0cc" name="ga01d37b6c40133676b9cea60ca1d7c0cc"></a>
930
+ <h2 class="memtitle"><span class="permalink"><a href="#ga01d37b6c40133676b9cea60ca1d7c0cc">&#9670;&#160;</a></span>glfwGetCursorPos()</h2>
931
+
932
+ <div class="memitem">
933
+ <div class="memproto">
934
+ <table class="memname">
935
+ <tr>
936
+ <td class="memname">void glfwGetCursorPos </td>
937
+ <td>(</td>
938
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
939
+ <td class="paramname"><em>window</em>, </td>
940
+ </tr>
941
+ <tr>
942
+ <td class="paramkey"></td>
943
+ <td></td>
944
+ <td class="paramtype">double *&#160;</td>
945
+ <td class="paramname"><em>xpos</em>, </td>
946
+ </tr>
947
+ <tr>
948
+ <td class="paramkey"></td>
949
+ <td></td>
950
+ <td class="paramtype">double *&#160;</td>
951
+ <td class="paramname"><em>ypos</em>&#160;</td>
952
+ </tr>
953
+ <tr>
954
+ <td></td>
955
+ <td>)</td>
956
+ <td></td><td></td>
957
+ </tr>
958
+ </table>
959
+ </div><div class="memdoc">
960
+ <p>This function returns the position of the cursor, in screen coordinates, relative to the upper-left corner of the content area of the specified window.</p>
961
+ <p>If the cursor is disabled (with <code>GLFW_CURSOR_DISABLED</code>) then the cursor position is unbounded and limited only by the minimum and maximum values of a <code>double</code>.</p>
962
+ <p>The coordinate can be converted to their integer equivalents with the <code>floor</code> function. Casting directly to an integer type works for positive coordinates, but fails for negative ones.</p>
963
+ <p>Any or all of the position arguments may be <code>NULL</code>. If an error occurs, all non-<code>NULL</code> position arguments will be set to zero.</p>
964
+ <dl class="params"><dt>Parameters</dt><dd>
965
+ <table class="params">
966
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The desired window. </td></tr>
967
+ <tr><td class="paramdir">[out]</td><td class="paramname">xpos</td><td>Where to store the cursor x-coordinate, relative to the left edge of the content area, or <code>NULL</code>. </td></tr>
968
+ <tr><td class="paramdir">[out]</td><td class="paramname">ypos</td><td>Where to store the cursor y-coordinate, relative to the to top edge of the content area, or <code>NULL</code>.</td></tr>
969
+ </table>
970
+ </dd>
971
+ </dl>
972
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
973
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
974
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_pos">Cursor position</a> </dd>
975
+ <dd>
976
+ <a class="el" href="group__input.html#ga04b03af936d906ca123c8f4ee08b39e7">glfwSetCursorPos</a></dd></dl>
977
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwGetMousePos</code>. </dd></dl>
978
+
979
+ </div>
980
+ </div>
981
+ <a id="ga04b03af936d906ca123c8f4ee08b39e7" name="ga04b03af936d906ca123c8f4ee08b39e7"></a>
982
+ <h2 class="memtitle"><span class="permalink"><a href="#ga04b03af936d906ca123c8f4ee08b39e7">&#9670;&#160;</a></span>glfwSetCursorPos()</h2>
983
+
984
+ <div class="memitem">
985
+ <div class="memproto">
986
+ <table class="memname">
987
+ <tr>
988
+ <td class="memname">void glfwSetCursorPos </td>
989
+ <td>(</td>
990
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
991
+ <td class="paramname"><em>window</em>, </td>
992
+ </tr>
993
+ <tr>
994
+ <td class="paramkey"></td>
995
+ <td></td>
996
+ <td class="paramtype">double&#160;</td>
997
+ <td class="paramname"><em>xpos</em>, </td>
998
+ </tr>
999
+ <tr>
1000
+ <td class="paramkey"></td>
1001
+ <td></td>
1002
+ <td class="paramtype">double&#160;</td>
1003
+ <td class="paramname"><em>ypos</em>&#160;</td>
1004
+ </tr>
1005
+ <tr>
1006
+ <td></td>
1007
+ <td>)</td>
1008
+ <td></td><td></td>
1009
+ </tr>
1010
+ </table>
1011
+ </div><div class="memdoc">
1012
+ <p>This function sets the position, in screen coordinates, of the cursor relative to the upper-left corner of the content area of the specified window. The window must have input focus. If the window does not have input focus when this function is called, it fails silently.</p>
1013
+ <p><b>Do not use this function</b> to implement things like camera controls. GLFW already provides the <code>GLFW_CURSOR_DISABLED</code> cursor mode that hides the cursor, transparently re-centers it and provides unconstrained cursor motion. See <a class="el" href="group__input.html#gaa92336e173da9c8834558b54ee80563b">glfwSetInputMode</a> for more information.</p>
1014
+ <p>If the cursor mode is <code>GLFW_CURSOR_DISABLED</code> then the cursor position is unconstrained and limited only by the minimum and maximum values of a <code>double</code>.</p>
1015
+ <dl class="params"><dt>Parameters</dt><dd>
1016
+ <table class="params">
1017
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The desired window. </td></tr>
1018
+ <tr><td class="paramdir">[in]</td><td class="paramname">xpos</td><td>The desired x-coordinate, relative to the left edge of the content area. </td></tr>
1019
+ <tr><td class="paramdir">[in]</td><td class="paramname">ypos</td><td>The desired y-coordinate, relative to the top edge of the content area.</td></tr>
1020
+ </table>
1021
+ </dd>
1022
+ </dl>
1023
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a> and <a class="el" href="group__errors.html#ga526fba20a01504a8086c763b6ca53ce5">GLFW_FEATURE_UNAVAILABLE</a> (see remarks).</dd></dl>
1024
+ <dl class="section remark"><dt>Remarks</dt><dd><b>Wayland:</b> This function will only work when the cursor mode is <code>GLFW_CURSOR_DISABLED</code>, otherwise it will emit <a class="el" href="group__errors.html#ga526fba20a01504a8086c763b6ca53ce5">GLFW_FEATURE_UNAVAILABLE</a>.</dd></dl>
1025
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1026
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_pos">Cursor position</a> </dd>
1027
+ <dd>
1028
+ <a class="el" href="group__input.html#ga01d37b6c40133676b9cea60ca1d7c0cc">glfwGetCursorPos</a></dd></dl>
1029
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwSetMousePos</code>. </dd></dl>
1030
+
1031
+ </div>
1032
+ </div>
1033
+ <a id="ga556f604f73af156c0db0e97c081373c3" name="ga556f604f73af156c0db0e97c081373c3"></a>
1034
+ <h2 class="memtitle"><span class="permalink"><a href="#ga556f604f73af156c0db0e97c081373c3">&#9670;&#160;</a></span>glfwCreateCursor()</h2>
1035
+
1036
+ <div class="memitem">
1037
+ <div class="memproto">
1038
+ <table class="memname">
1039
+ <tr>
1040
+ <td class="memname"><a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a> * glfwCreateCursor </td>
1041
+ <td>(</td>
1042
+ <td class="paramtype">const <a class="el" href="struct_g_l_f_wimage.html">GLFWimage</a> *&#160;</td>
1043
+ <td class="paramname"><em>image</em>, </td>
1044
+ </tr>
1045
+ <tr>
1046
+ <td class="paramkey"></td>
1047
+ <td></td>
1048
+ <td class="paramtype">int&#160;</td>
1049
+ <td class="paramname"><em>xhot</em>, </td>
1050
+ </tr>
1051
+ <tr>
1052
+ <td class="paramkey"></td>
1053
+ <td></td>
1054
+ <td class="paramtype">int&#160;</td>
1055
+ <td class="paramname"><em>yhot</em>&#160;</td>
1056
+ </tr>
1057
+ <tr>
1058
+ <td></td>
1059
+ <td>)</td>
1060
+ <td></td><td></td>
1061
+ </tr>
1062
+ </table>
1063
+ </div><div class="memdoc">
1064
+ <p>Creates a new custom cursor image that can be set for a window with <a class="el" href="group__input.html#gad3b4f38c8d5dae036bc8fa959e18343e">glfwSetCursor</a>. The cursor can be destroyed with <a class="el" href="group__input.html#ga81b952cd1764274d0db7fb3c5a79ba6a">glfwDestroyCursor</a>. Any remaining cursors are destroyed by <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a>.</p>
1065
+ <p>The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight bits per channel with the red channel first. They are arranged canonically as packed sequential rows, starting from the top-left corner.</p>
1066
+ <p>The cursor hotspot is specified in pixels, relative to the upper-left corner of the cursor image. Like all other coordinate systems in GLFW, the X-axis points to the right and the Y-axis points down.</p>
1067
+ <dl class="params"><dt>Parameters</dt><dd>
1068
+ <table class="params">
1069
+ <tr><td class="paramdir">[in]</td><td class="paramname">image</td><td>The desired cursor image. </td></tr>
1070
+ <tr><td class="paramdir">[in]</td><td class="paramname">xhot</td><td>The desired x-coordinate, in pixels, of the cursor hotspot. </td></tr>
1071
+ <tr><td class="paramdir">[in]</td><td class="paramname">yhot</td><td>The desired y-coordinate, in pixels, of the cursor hotspot. </td></tr>
1072
+ </table>
1073
+ </dd>
1074
+ </dl>
1075
+ <dl class="section return"><dt>Returns</dt><dd>The handle of the created cursor, or <code>NULL</code> if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
1076
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1077
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The specified image data is copied before this function returns.</dd></dl>
1078
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1079
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_object">Cursor objects</a> </dd>
1080
+ <dd>
1081
+ <a class="el" href="group__input.html#ga81b952cd1764274d0db7fb3c5a79ba6a">glfwDestroyCursor</a> </dd>
1082
+ <dd>
1083
+ <a class="el" href="group__input.html#gaf2fb2eb2c9dd842d1cef8a34e3c6403e">glfwCreateStandardCursor</a></dd></dl>
1084
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl>
1085
+
1086
+ </div>
1087
+ </div>
1088
+ <a id="gaf2fb2eb2c9dd842d1cef8a34e3c6403e" name="gaf2fb2eb2c9dd842d1cef8a34e3c6403e"></a>
1089
+ <h2 class="memtitle"><span class="permalink"><a href="#gaf2fb2eb2c9dd842d1cef8a34e3c6403e">&#9670;&#160;</a></span>glfwCreateStandardCursor()</h2>
1090
+
1091
+ <div class="memitem">
1092
+ <div class="memproto">
1093
+ <table class="memname">
1094
+ <tr>
1095
+ <td class="memname"><a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a> * glfwCreateStandardCursor </td>
1096
+ <td>(</td>
1097
+ <td class="paramtype">int&#160;</td>
1098
+ <td class="paramname"><em>shape</em></td><td>)</td>
1099
+ <td></td>
1100
+ </tr>
1101
+ </table>
1102
+ </div><div class="memdoc">
1103
+ <p>Returns a cursor with a standard shape, that can be set for a window with <a class="el" href="group__input.html#gad3b4f38c8d5dae036bc8fa959e18343e">glfwSetCursor</a>. The images for these cursors come from the system cursor theme and their exact appearance will vary between platforms.</p>
1104
+ <p>Most of these shapes are guaranteed to exist on every supported platform but a few may not be present. See the table below for details.</p>
1105
+ <table class="markdownTable">
1106
+ <tr class="markdownTableHead">
1107
+ <th class="markdownTableHeadNone">Cursor shape </th><th class="markdownTableHeadNone">Windows </th><th class="markdownTableHeadNone">macOS </th><th class="markdownTableHeadNone">X11 </th><th class="markdownTableHeadNone">Wayland </th></tr>
1108
+ <tr class="markdownTableRowOdd">
1109
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#ga8ab0e717245b85506cb0eaefdea39d0a">GLFW_ARROW_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td></tr>
1110
+ <tr class="markdownTableRowEven">
1111
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#ga36185f4375eaada1b04e431244774c86">GLFW_IBEAM_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td></tr>
1112
+ <tr class="markdownTableRowOdd">
1113
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#ga8af88c0ea05ab9e8f9ac1530e8873c22">GLFW_CROSSHAIR_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td></tr>
1114
+ <tr class="markdownTableRowEven">
1115
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#gaad01a50929fb515bf27e4462c51f6ed0">GLFW_POINTING_HAND_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td></tr>
1116
+ <tr class="markdownTableRowOdd">
1117
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#ga2010a43dc1050a7c9154148a63cf01ad">GLFW_RESIZE_EW_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td></tr>
1118
+ <tr class="markdownTableRowEven">
1119
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#gaa59214e8cdc8c8adf08fdf125ed68388">GLFW_RESIZE_NS_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td></tr>
1120
+ <tr class="markdownTableRowOdd">
1121
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#gadf2c0a495ec9cef4e1a364cc99aa78da">GLFW_RESIZE_NWSE_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes<sup>1</sup> </td><td class="markdownTableBodyNone">Maybe<sup>2</sup> </td><td class="markdownTableBodyNone">Maybe<sup>2</sup> </td></tr>
1122
+ <tr class="markdownTableRowEven">
1123
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#gab06bba3b407f92807ba9b48de667a323">GLFW_RESIZE_NESW_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes<sup>1</sup> </td><td class="markdownTableBodyNone">Maybe<sup>2</sup> </td><td class="markdownTableBodyNone">Maybe<sup>2</sup> </td></tr>
1124
+ <tr class="markdownTableRowOdd">
1125
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#ga3a5f4811155f95ccafbbb4c9a899fc1d">GLFW_RESIZE_ALL_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td></tr>
1126
+ <tr class="markdownTableRowEven">
1127
+ <td class="markdownTableBodyNone"><a class="el" href="group__shapes.html#ga297c503095b034bc8891393b637844b1">GLFW_NOT_ALLOWED_CURSOR</a> </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Yes </td><td class="markdownTableBodyNone">Maybe<sup>2</sup> </td><td class="markdownTableBodyNone">Maybe<sup>2</sup> </td></tr>
1128
+ </table>
1129
+ <p>1) This uses a private system API and may fail in the future.</p>
1130
+ <p>2) This uses a newer standard that not all cursor themes support.</p>
1131
+ <p>If the requested shape is not available, this function emits a <a class="el" href="group__errors.html#ga09d6943923a70ddef3a085f5baee786c">GLFW_CURSOR_UNAVAILABLE</a> error and returns <code>NULL</code>.</p>
1132
+ <dl class="params"><dt>Parameters</dt><dd>
1133
+ <table class="params">
1134
+ <tr><td class="paramdir">[in]</td><td class="paramname">shape</td><td>One of the <a class="el" href="group__shapes.html">standard shapes</a>. </td></tr>
1135
+ </table>
1136
+ </dd>
1137
+ </dl>
1138
+ <dl class="section return"><dt>Returns</dt><dd>A new cursor ready to use or <code>NULL</code> if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
1139
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>, <a class="el" href="group__errors.html#ga09d6943923a70ddef3a085f5baee786c">GLFW_CURSOR_UNAVAILABLE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1140
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1141
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_standard">Standard cursor creation</a> </dd>
1142
+ <dd>
1143
+ <a class="el" href="group__input.html#ga556f604f73af156c0db0e97c081373c3">glfwCreateCursor</a></dd></dl>
1144
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl>
1145
+
1146
+ </div>
1147
+ </div>
1148
+ <a id="ga81b952cd1764274d0db7fb3c5a79ba6a" name="ga81b952cd1764274d0db7fb3c5a79ba6a"></a>
1149
+ <h2 class="memtitle"><span class="permalink"><a href="#ga81b952cd1764274d0db7fb3c5a79ba6a">&#9670;&#160;</a></span>glfwDestroyCursor()</h2>
1150
+
1151
+ <div class="memitem">
1152
+ <div class="memproto">
1153
+ <table class="memname">
1154
+ <tr>
1155
+ <td class="memname">void glfwDestroyCursor </td>
1156
+ <td>(</td>
1157
+ <td class="paramtype"><a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a> *&#160;</td>
1158
+ <td class="paramname"><em>cursor</em></td><td>)</td>
1159
+ <td></td>
1160
+ </tr>
1161
+ </table>
1162
+ </div><div class="memdoc">
1163
+ <p>This function destroys a cursor previously created with <a class="el" href="group__input.html#ga556f604f73af156c0db0e97c081373c3">glfwCreateCursor</a>. Any remaining cursors will be destroyed by <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a>.</p>
1164
+ <p>If the specified cursor is current for any window, that window will be reverted to the default cursor. This does not affect the cursor mode.</p>
1165
+ <dl class="params"><dt>Parameters</dt><dd>
1166
+ <table class="params">
1167
+ <tr><td class="paramdir">[in]</td><td class="paramname">cursor</td><td>The cursor object to destroy.</td></tr>
1168
+ </table>
1169
+ </dd>
1170
+ </dl>
1171
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1172
+ <dl class="section user"><dt>Reentrancy</dt><dd>This function must not be called from a callback.</dd></dl>
1173
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1174
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_object">Cursor objects</a> </dd>
1175
+ <dd>
1176
+ <a class="el" href="group__input.html#ga556f604f73af156c0db0e97c081373c3">glfwCreateCursor</a></dd></dl>
1177
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl>
1178
+
1179
+ </div>
1180
+ </div>
1181
+ <a id="gad3b4f38c8d5dae036bc8fa959e18343e" name="gad3b4f38c8d5dae036bc8fa959e18343e"></a>
1182
+ <h2 class="memtitle"><span class="permalink"><a href="#gad3b4f38c8d5dae036bc8fa959e18343e">&#9670;&#160;</a></span>glfwSetCursor()</h2>
1183
+
1184
+ <div class="memitem">
1185
+ <div class="memproto">
1186
+ <table class="memname">
1187
+ <tr>
1188
+ <td class="memname">void glfwSetCursor </td>
1189
+ <td>(</td>
1190
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
1191
+ <td class="paramname"><em>window</em>, </td>
1192
+ </tr>
1193
+ <tr>
1194
+ <td class="paramkey"></td>
1195
+ <td></td>
1196
+ <td class="paramtype"><a class="el" href="group__input.html#ga89261ae18c75e863aaf2656ecdd238f4">GLFWcursor</a> *&#160;</td>
1197
+ <td class="paramname"><em>cursor</em>&#160;</td>
1198
+ </tr>
1199
+ <tr>
1200
+ <td></td>
1201
+ <td>)</td>
1202
+ <td></td><td></td>
1203
+ </tr>
1204
+ </table>
1205
+ </div><div class="memdoc">
1206
+ <p>This function sets the cursor image to be used when the cursor is over the content area of the specified window. The set cursor will only be visible when the <a class="el" href="input_guide.html#cursor_mode">cursor mode</a> of the window is <code>GLFW_CURSOR_NORMAL</code>.</p>
1207
+ <p>On some platforms, the set cursor may not be visible unless the window also has input focus.</p>
1208
+ <dl class="params"><dt>Parameters</dt><dd>
1209
+ <table class="params">
1210
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to set the cursor for. </td></tr>
1211
+ <tr><td class="paramdir">[in]</td><td class="paramname">cursor</td><td>The cursor to set, or <code>NULL</code> to switch back to the default arrow cursor.</td></tr>
1212
+ </table>
1213
+ </dd>
1214
+ </dl>
1215
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1216
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1217
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_object">Cursor objects</a></dd></dl>
1218
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl>
1219
+
1220
+ </div>
1221
+ </div>
1222
+ <a id="ga1caf18159767e761185e49a3be019f8d" name="ga1caf18159767e761185e49a3be019f8d"></a>
1223
+ <h2 class="memtitle"><span class="permalink"><a href="#ga1caf18159767e761185e49a3be019f8d">&#9670;&#160;</a></span>glfwSetKeyCallback()</h2>
1224
+
1225
+ <div class="memitem">
1226
+ <div class="memproto">
1227
+ <table class="memname">
1228
+ <tr>
1229
+ <td class="memname"><a class="el" href="group__input.html#ga5bd751b27b90f865d2ea613533f0453c">GLFWkeyfun</a> glfwSetKeyCallback </td>
1230
+ <td>(</td>
1231
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
1232
+ <td class="paramname"><em>window</em>, </td>
1233
+ </tr>
1234
+ <tr>
1235
+ <td class="paramkey"></td>
1236
+ <td></td>
1237
+ <td class="paramtype"><a class="el" href="group__input.html#ga5bd751b27b90f865d2ea613533f0453c">GLFWkeyfun</a>&#160;</td>
1238
+ <td class="paramname"><em>callback</em>&#160;</td>
1239
+ </tr>
1240
+ <tr>
1241
+ <td></td>
1242
+ <td>)</td>
1243
+ <td></td><td></td>
1244
+ </tr>
1245
+ </table>
1246
+ </div><div class="memdoc">
1247
+ <p>This function sets the key callback of the specified window, which is called when a key is pressed, repeated or released.</p>
1248
+ <p>The key functions deal with physical keys, with layout independent <a class="el" href="group__keys.html">key tokens</a> named after their values in the standard US keyboard layout. If you want to input text, use the <a class="el" href="group__input.html#gab25c4a220fd8f5717718dbc487828996">character callback</a> instead.</p>
1249
+ <p>When a window loses input focus, it will generate synthetic key release events for all pressed keys with associated key tokens. You can tell these events from user-generated events by the fact that the synthetic ones are generated after the focus loss event has been processed, i.e. after the <a class="el" href="group__window.html#gac2d83c4a10f071baf841f6730528e66c">window focus callback</a> has been called.</p>
1250
+ <p>The scancode of a key is specific to that platform or sometimes even to that machine. Scancodes are intended to allow users to bind keys that don't have a GLFW key token. Such keys have <code>key</code> set to <code>GLFW_KEY_UNKNOWN</code>, their state is not saved and so it cannot be queried with <a class="el" href="group__input.html#gadd341da06bc8d418b4dc3a3518af9ad2">glfwGetKey</a>.</p>
1251
+ <p>Sometimes GLFW needs to generate synthetic key events, in which case the scancode may be zero.</p>
1252
+ <dl class="params"><dt>Parameters</dt><dd>
1253
+ <table class="params">
1254
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr>
1255
+ <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new key callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
1256
+ </table>
1257
+ </dd>
1258
+ </dl>
1259
+ <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl>
1260
+ <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> key, <span class="keywordtype">int</span> scancode, <span class="keywordtype">int</span> action, <span class="keywordtype">int</span> mods)</div>
1261
+ </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__input.html#ga5bd751b27b90f865d2ea613533f0453c">function pointer type</a>.</dd></dl>
1262
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1263
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1264
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_key">Key input</a></dd></dl>
1265
+ <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter and return value. </dd></dl>
1266
+
1267
+ </div>
1268
+ </div>
1269
+ <a id="gab25c4a220fd8f5717718dbc487828996" name="gab25c4a220fd8f5717718dbc487828996"></a>
1270
+ <h2 class="memtitle"><span class="permalink"><a href="#gab25c4a220fd8f5717718dbc487828996">&#9670;&#160;</a></span>glfwSetCharCallback()</h2>
1271
+
1272
+ <div class="memitem">
1273
+ <div class="memproto">
1274
+ <table class="memname">
1275
+ <tr>
1276
+ <td class="memname"><a class="el" href="group__input.html#ga1ab90a55cf3f58639b893c0f4118cb6e">GLFWcharfun</a> glfwSetCharCallback </td>
1277
+ <td>(</td>
1278
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
1279
+ <td class="paramname"><em>window</em>, </td>
1280
+ </tr>
1281
+ <tr>
1282
+ <td class="paramkey"></td>
1283
+ <td></td>
1284
+ <td class="paramtype"><a class="el" href="group__input.html#ga1ab90a55cf3f58639b893c0f4118cb6e">GLFWcharfun</a>&#160;</td>
1285
+ <td class="paramname"><em>callback</em>&#160;</td>
1286
+ </tr>
1287
+ <tr>
1288
+ <td></td>
1289
+ <td>)</td>
1290
+ <td></td><td></td>
1291
+ </tr>
1292
+ </table>
1293
+ </div><div class="memdoc">
1294
+ <p>This function sets the character callback of the specified window, which is called when a Unicode character is input.</p>
1295
+ <p>The character callback is intended for Unicode text input. As it deals with characters, it is keyboard layout dependent, whereas the <a class="el" href="group__input.html#ga1caf18159767e761185e49a3be019f8d">key callback</a> is not. Characters do not map 1:1 to physical keys, as a key may produce zero, one or more characters. If you want to know whether a specific physical key was pressed or released, see the key callback instead.</p>
1296
+ <p>The character callback behaves as system text input normally does and will not be called if modifier keys are held down that would prevent normal text input on that platform, for example a Super (Command) key on macOS or Alt key on Windows.</p>
1297
+ <dl class="params"><dt>Parameters</dt><dd>
1298
+ <table class="params">
1299
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr>
1300
+ <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
1301
+ </table>
1302
+ </dd>
1303
+ </dl>
1304
+ <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl>
1305
+ <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> codepoint)</div>
1306
+ </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__input.html#ga1ab90a55cf3f58639b893c0f4118cb6e">function pointer type</a>.</dd></dl>
1307
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1308
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1309
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_char">Text input</a></dd></dl>
1310
+ <dl class="section since"><dt>Since</dt><dd>Added in version 2.4. <b>GLFW 3:</b> Added window handle parameter and return value. </dd></dl>
1311
+
1312
+ </div>
1313
+ </div>
1314
+ <a id="ga0b7f4ad13c2b17435ff13b6dcfb4e43c" name="ga0b7f4ad13c2b17435ff13b6dcfb4e43c"></a>
1315
+ <h2 class="memtitle"><span class="permalink"><a href="#ga0b7f4ad13c2b17435ff13b6dcfb4e43c">&#9670;&#160;</a></span>glfwSetCharModsCallback()</h2>
1316
+
1317
+ <div class="memitem">
1318
+ <div class="memproto">
1319
+ <table class="memname">
1320
+ <tr>
1321
+ <td class="memname"><a class="el" href="group__input.html#gac3cf64f90b6219c05ac7b7822d5a4b8f">GLFWcharmodsfun</a> glfwSetCharModsCallback </td>
1322
+ <td>(</td>
1323
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
1324
+ <td class="paramname"><em>window</em>, </td>
1325
+ </tr>
1326
+ <tr>
1327
+ <td class="paramkey"></td>
1328
+ <td></td>
1329
+ <td class="paramtype"><a class="el" href="group__input.html#gac3cf64f90b6219c05ac7b7822d5a4b8f">GLFWcharmodsfun</a>&#160;</td>
1330
+ <td class="paramname"><em>callback</em>&#160;</td>
1331
+ </tr>
1332
+ <tr>
1333
+ <td></td>
1334
+ <td>)</td>
1335
+ <td></td><td></td>
1336
+ </tr>
1337
+ </table>
1338
+ </div><div class="memdoc">
1339
+ <p>This function sets the character with modifiers callback of the specified window, which is called when a Unicode character is input regardless of what modifier keys are used.</p>
1340
+ <p>The character with modifiers callback is intended for implementing custom Unicode character input. For regular Unicode text input, see the <a class="el" href="group__input.html#gab25c4a220fd8f5717718dbc487828996">character callback</a>. Like the character callback, the character with modifiers callback deals with characters and is keyboard layout dependent. Characters do not map 1:1 to physical keys, as a key may produce zero, one or more characters. If you want to know whether a specific physical key was pressed or released, see the <a class="el" href="group__input.html#ga1caf18159767e761185e49a3be019f8d">key callback</a> instead.</p>
1341
+ <dl class="params"><dt>Parameters</dt><dd>
1342
+ <table class="params">
1343
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr>
1344
+ <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
1345
+ </table>
1346
+ </dd>
1347
+ </dl>
1348
+ <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
1349
+ <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> codepoint, <span class="keywordtype">int</span> mods)</div>
1350
+ </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__input.html#gac3cf64f90b6219c05ac7b7822d5a4b8f">function pointer type</a>.</dd></dl>
1351
+ <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>Scheduled for removal in version 4.0.</dd></dl>
1352
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1353
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1354
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_char">Text input</a></dd></dl>
1355
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl>
1356
+
1357
+ </div>
1358
+ </div>
1359
+ <a id="ga6ab84420974d812bee700e45284a723c" name="ga6ab84420974d812bee700e45284a723c"></a>
1360
+ <h2 class="memtitle"><span class="permalink"><a href="#ga6ab84420974d812bee700e45284a723c">&#9670;&#160;</a></span>glfwSetMouseButtonCallback()</h2>
1361
+
1362
+ <div class="memitem">
1363
+ <div class="memproto">
1364
+ <table class="memname">
1365
+ <tr>
1366
+ <td class="memname"><a class="el" href="group__input.html#ga0184dcb59f6d85d735503dcaae809727">GLFWmousebuttonfun</a> glfwSetMouseButtonCallback </td>
1367
+ <td>(</td>
1368
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
1369
+ <td class="paramname"><em>window</em>, </td>
1370
+ </tr>
1371
+ <tr>
1372
+ <td class="paramkey"></td>
1373
+ <td></td>
1374
+ <td class="paramtype"><a class="el" href="group__input.html#ga0184dcb59f6d85d735503dcaae809727">GLFWmousebuttonfun</a>&#160;</td>
1375
+ <td class="paramname"><em>callback</em>&#160;</td>
1376
+ </tr>
1377
+ <tr>
1378
+ <td></td>
1379
+ <td>)</td>
1380
+ <td></td><td></td>
1381
+ </tr>
1382
+ </table>
1383
+ </div><div class="memdoc">
1384
+ <p>This function sets the mouse button callback of the specified window, which is called when a mouse button is pressed or released.</p>
1385
+ <p>When a window loses input focus, it will generate synthetic mouse button release events for all pressed mouse buttons. You can tell these events from user-generated events by the fact that the synthetic ones are generated after the focus loss event has been processed, i.e. after the <a class="el" href="group__window.html#gac2d83c4a10f071baf841f6730528e66c">window focus callback</a> has been called.</p>
1386
+ <dl class="params"><dt>Parameters</dt><dd>
1387
+ <table class="params">
1388
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr>
1389
+ <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
1390
+ </table>
1391
+ </dd>
1392
+ </dl>
1393
+ <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl>
1394
+ <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> button, <span class="keywordtype">int</span> action, <span class="keywordtype">int</span> mods)</div>
1395
+ </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__input.html#ga0184dcb59f6d85d735503dcaae809727">function pointer type</a>.</dd></dl>
1396
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1397
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1398
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_mouse_button">Mouse button input</a></dd></dl>
1399
+ <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter and return value. </dd></dl>
1400
+
1401
+ </div>
1402
+ </div>
1403
+ <a id="gac1f879ab7435d54d4d79bb469fe225d7" name="gac1f879ab7435d54d4d79bb469fe225d7"></a>
1404
+ <h2 class="memtitle"><span class="permalink"><a href="#gac1f879ab7435d54d4d79bb469fe225d7">&#9670;&#160;</a></span>glfwSetCursorPosCallback()</h2>
1405
+
1406
+ <div class="memitem">
1407
+ <div class="memproto">
1408
+ <table class="memname">
1409
+ <tr>
1410
+ <td class="memname"><a class="el" href="group__input.html#gad6fae41b3ac2e4209aaa87b596c57f68">GLFWcursorposfun</a> glfwSetCursorPosCallback </td>
1411
+ <td>(</td>
1412
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
1413
+ <td class="paramname"><em>window</em>, </td>
1414
+ </tr>
1415
+ <tr>
1416
+ <td class="paramkey"></td>
1417
+ <td></td>
1418
+ <td class="paramtype"><a class="el" href="group__input.html#gad6fae41b3ac2e4209aaa87b596c57f68">GLFWcursorposfun</a>&#160;</td>
1419
+ <td class="paramname"><em>callback</em>&#160;</td>
1420
+ </tr>
1421
+ <tr>
1422
+ <td></td>
1423
+ <td>)</td>
1424
+ <td></td><td></td>
1425
+ </tr>
1426
+ </table>
1427
+ </div><div class="memdoc">
1428
+ <p>This function sets the cursor position callback of the specified window, which is called when the cursor is moved. The callback is provided with the position, in screen coordinates, relative to the upper-left corner of the content area of the window.</p>
1429
+ <dl class="params"><dt>Parameters</dt><dd>
1430
+ <table class="params">
1431
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr>
1432
+ <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
1433
+ </table>
1434
+ </dd>
1435
+ </dl>
1436
+ <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl>
1437
+ <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">double</span> xpos, <span class="keywordtype">double</span> ypos);</div>
1438
+ </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__input.html#gad6fae41b3ac2e4209aaa87b596c57f68">function pointer type</a>.</dd></dl>
1439
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1440
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1441
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_pos">Cursor position</a></dd></dl>
1442
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwSetMousePosCallback</code>. </dd></dl>
1443
+
1444
+ </div>
1445
+ </div>
1446
+ <a id="gad27f8ad0142c038a281466c0966817d8" name="gad27f8ad0142c038a281466c0966817d8"></a>
1447
+ <h2 class="memtitle"><span class="permalink"><a href="#gad27f8ad0142c038a281466c0966817d8">&#9670;&#160;</a></span>glfwSetCursorEnterCallback()</h2>
1448
+
1449
+ <div class="memitem">
1450
+ <div class="memproto">
1451
+ <table class="memname">
1452
+ <tr>
1453
+ <td class="memname"><a class="el" href="group__input.html#gaa93dc4818ac9ab32532909d53a337cbe">GLFWcursorenterfun</a> glfwSetCursorEnterCallback </td>
1454
+ <td>(</td>
1455
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
1456
+ <td class="paramname"><em>window</em>, </td>
1457
+ </tr>
1458
+ <tr>
1459
+ <td class="paramkey"></td>
1460
+ <td></td>
1461
+ <td class="paramtype"><a class="el" href="group__input.html#gaa93dc4818ac9ab32532909d53a337cbe">GLFWcursorenterfun</a>&#160;</td>
1462
+ <td class="paramname"><em>callback</em>&#160;</td>
1463
+ </tr>
1464
+ <tr>
1465
+ <td></td>
1466
+ <td>)</td>
1467
+ <td></td><td></td>
1468
+ </tr>
1469
+ </table>
1470
+ </div><div class="memdoc">
1471
+ <p>This function sets the cursor boundary crossing callback of the specified window, which is called when the cursor enters or leaves the content area of the window.</p>
1472
+ <dl class="params"><dt>Parameters</dt><dd>
1473
+ <table class="params">
1474
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr>
1475
+ <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
1476
+ </table>
1477
+ </dd>
1478
+ </dl>
1479
+ <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl>
1480
+ <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> entered)</div>
1481
+ </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__input.html#gaa93dc4818ac9ab32532909d53a337cbe">function pointer type</a>.</dd></dl>
1482
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1483
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1484
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_enter">Cursor enter/leave events</a></dd></dl>
1485
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl>
1486
+
1487
+ </div>
1488
+ </div>
1489
+ <a id="ga571e45a030ae4061f746ed56cb76aede" name="ga571e45a030ae4061f746ed56cb76aede"></a>
1490
+ <h2 class="memtitle"><span class="permalink"><a href="#ga571e45a030ae4061f746ed56cb76aede">&#9670;&#160;</a></span>glfwSetScrollCallback()</h2>
1491
+
1492
+ <div class="memitem">
1493
+ <div class="memproto">
1494
+ <table class="memname">
1495
+ <tr>
1496
+ <td class="memname"><a class="el" href="group__input.html#gaf656112c33de3efdb227fa58f0134cf5">GLFWscrollfun</a> glfwSetScrollCallback </td>
1497
+ <td>(</td>
1498
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
1499
+ <td class="paramname"><em>window</em>, </td>
1500
+ </tr>
1501
+ <tr>
1502
+ <td class="paramkey"></td>
1503
+ <td></td>
1504
+ <td class="paramtype"><a class="el" href="group__input.html#gaf656112c33de3efdb227fa58f0134cf5">GLFWscrollfun</a>&#160;</td>
1505
+ <td class="paramname"><em>callback</em>&#160;</td>
1506
+ </tr>
1507
+ <tr>
1508
+ <td></td>
1509
+ <td>)</td>
1510
+ <td></td><td></td>
1511
+ </tr>
1512
+ </table>
1513
+ </div><div class="memdoc">
1514
+ <p>This function sets the scroll callback of the specified window, which is called when a scrolling device is used, such as a mouse wheel or scrolling area of a touchpad.</p>
1515
+ <p>The scroll callback receives all scrolling input, like that from a mouse wheel or a touchpad scrolling area.</p>
1516
+ <dl class="params"><dt>Parameters</dt><dd>
1517
+ <table class="params">
1518
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr>
1519
+ <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new scroll callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
1520
+ </table>
1521
+ </dd>
1522
+ </dl>
1523
+ <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl>
1524
+ <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">double</span> xoffset, <span class="keywordtype">double</span> yoffset)</div>
1525
+ </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__input.html#gaf656112c33de3efdb227fa58f0134cf5">function pointer type</a>.</dd></dl>
1526
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1527
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1528
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#scrolling">Scroll input</a></dd></dl>
1529
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwSetMouseWheelCallback</code>. </dd></dl>
1530
+
1531
+ </div>
1532
+ </div>
1533
+ <a id="gab773f0ee0a07cff77a210cea40bc1f6b" name="gab773f0ee0a07cff77a210cea40bc1f6b"></a>
1534
+ <h2 class="memtitle"><span class="permalink"><a href="#gab773f0ee0a07cff77a210cea40bc1f6b">&#9670;&#160;</a></span>glfwSetDropCallback()</h2>
1535
+
1536
+ <div class="memitem">
1537
+ <div class="memproto">
1538
+ <table class="memname">
1539
+ <tr>
1540
+ <td class="memname"><a class="el" href="group__input.html#gaaba73c3274062c18723b7f05862d94b2">GLFWdropfun</a> glfwSetDropCallback </td>
1541
+ <td>(</td>
1542
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
1543
+ <td class="paramname"><em>window</em>, </td>
1544
+ </tr>
1545
+ <tr>
1546
+ <td class="paramkey"></td>
1547
+ <td></td>
1548
+ <td class="paramtype"><a class="el" href="group__input.html#gaaba73c3274062c18723b7f05862d94b2">GLFWdropfun</a>&#160;</td>
1549
+ <td class="paramname"><em>callback</em>&#160;</td>
1550
+ </tr>
1551
+ <tr>
1552
+ <td></td>
1553
+ <td>)</td>
1554
+ <td></td><td></td>
1555
+ </tr>
1556
+ </table>
1557
+ </div><div class="memdoc">
1558
+ <p>This function sets the path drop callback of the specified window, which is called when one or more dragged paths are dropped on the window.</p>
1559
+ <p>Because the path array and its strings may have been generated specifically for that event, they are not guaranteed to be valid after the callback has returned. If you wish to use them after the callback returns, you need to make a deep copy.</p>
1560
+ <dl class="params"><dt>Parameters</dt><dd>
1561
+ <table class="params">
1562
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr>
1563
+ <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new file drop callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
1564
+ </table>
1565
+ </dd>
1566
+ </dl>
1567
+ <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl>
1568
+ <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> path_count, <span class="keyword">const</span> <span class="keywordtype">char</span>* paths[])</div>
1569
+ </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__input.html#gaaba73c3274062c18723b7f05862d94b2">function pointer type</a>.</dd></dl>
1570
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1571
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1572
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#path_drop">Path drop input</a></dd></dl>
1573
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl>
1574
+
1575
+ </div>
1576
+ </div>
1577
+ <a id="gaed0966cee139d815317f9ffcba64c9f1" name="gaed0966cee139d815317f9ffcba64c9f1"></a>
1578
+ <h2 class="memtitle"><span class="permalink"><a href="#gaed0966cee139d815317f9ffcba64c9f1">&#9670;&#160;</a></span>glfwJoystickPresent()</h2>
1579
+
1580
+ <div class="memitem">
1581
+ <div class="memproto">
1582
+ <table class="memname">
1583
+ <tr>
1584
+ <td class="memname">int glfwJoystickPresent </td>
1585
+ <td>(</td>
1586
+ <td class="paramtype">int&#160;</td>
1587
+ <td class="paramname"><em>jid</em></td><td>)</td>
1588
+ <td></td>
1589
+ </tr>
1590
+ </table>
1591
+ </div><div class="memdoc">
1592
+ <p>This function returns whether the specified joystick is present.</p>
1593
+ <p>There is no need to call this function before other functions that accept a joystick ID, as they all check for presence before performing any other work.</p>
1594
+ <dl class="params"><dt>Parameters</dt><dd>
1595
+ <table class="params">
1596
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The <a class="el" href="group__joysticks.html">joystick</a> to query. </td></tr>
1597
+ </table>
1598
+ </dd>
1599
+ </dl>
1600
+ <dl class="section return"><dt>Returns</dt><dd><code>GLFW_TRUE</code> if the joystick is present, or <code>GLFW_FALSE</code> otherwise.</dd></dl>
1601
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1602
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1603
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#joystick">Joystick input</a></dd></dl>
1604
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwGetJoystickParam</code>. </dd></dl>
1605
+
1606
+ </div>
1607
+ </div>
1608
+ <a id="gaeb1c0191d3140a233a682987c61eb408" name="gaeb1c0191d3140a233a682987c61eb408"></a>
1609
+ <h2 class="memtitle"><span class="permalink"><a href="#gaeb1c0191d3140a233a682987c61eb408">&#9670;&#160;</a></span>glfwGetJoystickAxes()</h2>
1610
+
1611
+ <div class="memitem">
1612
+ <div class="memproto">
1613
+ <table class="memname">
1614
+ <tr>
1615
+ <td class="memname">const float * glfwGetJoystickAxes </td>
1616
+ <td>(</td>
1617
+ <td class="paramtype">int&#160;</td>
1618
+ <td class="paramname"><em>jid</em>, </td>
1619
+ </tr>
1620
+ <tr>
1621
+ <td class="paramkey"></td>
1622
+ <td></td>
1623
+ <td class="paramtype">int *&#160;</td>
1624
+ <td class="paramname"><em>count</em>&#160;</td>
1625
+ </tr>
1626
+ <tr>
1627
+ <td></td>
1628
+ <td>)</td>
1629
+ <td></td><td></td>
1630
+ </tr>
1631
+ </table>
1632
+ </div><div class="memdoc">
1633
+ <p>This function returns the values of all axes of the specified joystick. Each element in the array is a value between -1.0 and 1.0.</p>
1634
+ <p>If the specified joystick is not present this function will return <code>NULL</code> but will not generate an error. This can be used instead of first calling <a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a>.</p>
1635
+ <dl class="params"><dt>Parameters</dt><dd>
1636
+ <table class="params">
1637
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The <a class="el" href="group__joysticks.html">joystick</a> to query. </td></tr>
1638
+ <tr><td class="paramdir">[out]</td><td class="paramname">count</td><td>Where to store the number of axis values in the returned array. This is set to zero if the joystick is not present or an error occurred. </td></tr>
1639
+ </table>
1640
+ </dd>
1641
+ </dl>
1642
+ <dl class="section return"><dt>Returns</dt><dd>An array of axis values, or <code>NULL</code> if the joystick is not present or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
1643
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1644
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned array is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected or the library is terminated.</dd></dl>
1645
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1646
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#joystick_axis">Joystick axis states</a></dd></dl>
1647
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwGetJoystickPos</code>. </dd></dl>
1648
+
1649
+ </div>
1650
+ </div>
1651
+ <a id="ga5ffe34739d3dc97efe432ed2d81d9938" name="ga5ffe34739d3dc97efe432ed2d81d9938"></a>
1652
+ <h2 class="memtitle"><span class="permalink"><a href="#ga5ffe34739d3dc97efe432ed2d81d9938">&#9670;&#160;</a></span>glfwGetJoystickButtons()</h2>
1653
+
1654
+ <div class="memitem">
1655
+ <div class="memproto">
1656
+ <table class="memname">
1657
+ <tr>
1658
+ <td class="memname">const unsigned char * glfwGetJoystickButtons </td>
1659
+ <td>(</td>
1660
+ <td class="paramtype">int&#160;</td>
1661
+ <td class="paramname"><em>jid</em>, </td>
1662
+ </tr>
1663
+ <tr>
1664
+ <td class="paramkey"></td>
1665
+ <td></td>
1666
+ <td class="paramtype">int *&#160;</td>
1667
+ <td class="paramname"><em>count</em>&#160;</td>
1668
+ </tr>
1669
+ <tr>
1670
+ <td></td>
1671
+ <td>)</td>
1672
+ <td></td><td></td>
1673
+ </tr>
1674
+ </table>
1675
+ </div><div class="memdoc">
1676
+ <p>This function returns the state of all buttons of the specified joystick. Each element in the array is either <code>GLFW_PRESS</code> or <code>GLFW_RELEASE</code>.</p>
1677
+ <p>For backward compatibility with earlier versions that did not have <a class="el" href="group__input.html#ga06e660841b3e79c54da4f54a932c5a2c">glfwGetJoystickHats</a>, the button array also includes all hats, each represented as four buttons. The hats are in the same order as returned by <b>glfwGetJoystickHats</b> and are in the order <em>up</em>, <em>right</em>, <em>down</em> and <em>left</em>. To disable these extra buttons, set the <a class="el" href="intro_guide.html#GLFW_JOYSTICK_HAT_BUTTONS">GLFW_JOYSTICK_HAT_BUTTONS</a> init hint before initialization.</p>
1678
+ <p>If the specified joystick is not present this function will return <code>NULL</code> but will not generate an error. This can be used instead of first calling <a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a>.</p>
1679
+ <dl class="params"><dt>Parameters</dt><dd>
1680
+ <table class="params">
1681
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The <a class="el" href="group__joysticks.html">joystick</a> to query. </td></tr>
1682
+ <tr><td class="paramdir">[out]</td><td class="paramname">count</td><td>Where to store the number of button states in the returned array. This is set to zero if the joystick is not present or an error occurred. </td></tr>
1683
+ </table>
1684
+ </dd>
1685
+ </dl>
1686
+ <dl class="section return"><dt>Returns</dt><dd>An array of button states, or <code>NULL</code> if the joystick is not present or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
1687
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1688
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned array is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected or the library is terminated.</dd></dl>
1689
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1690
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#joystick_button">Joystick button states</a></dd></dl>
1691
+ <dl class="section since"><dt>Since</dt><dd>Added in version 2.2. <b>GLFW 3:</b> Changed to return a dynamic array. </dd></dl>
1692
+
1693
+ </div>
1694
+ </div>
1695
+ <a id="ga06e660841b3e79c54da4f54a932c5a2c" name="ga06e660841b3e79c54da4f54a932c5a2c"></a>
1696
+ <h2 class="memtitle"><span class="permalink"><a href="#ga06e660841b3e79c54da4f54a932c5a2c">&#9670;&#160;</a></span>glfwGetJoystickHats()</h2>
1697
+
1698
+ <div class="memitem">
1699
+ <div class="memproto">
1700
+ <table class="memname">
1701
+ <tr>
1702
+ <td class="memname">const unsigned char * glfwGetJoystickHats </td>
1703
+ <td>(</td>
1704
+ <td class="paramtype">int&#160;</td>
1705
+ <td class="paramname"><em>jid</em>, </td>
1706
+ </tr>
1707
+ <tr>
1708
+ <td class="paramkey"></td>
1709
+ <td></td>
1710
+ <td class="paramtype">int *&#160;</td>
1711
+ <td class="paramname"><em>count</em>&#160;</td>
1712
+ </tr>
1713
+ <tr>
1714
+ <td></td>
1715
+ <td>)</td>
1716
+ <td></td><td></td>
1717
+ </tr>
1718
+ </table>
1719
+ </div><div class="memdoc">
1720
+ <p>This function returns the state of all hats of the specified joystick. Each element in the array is one of the following values:</p>
1721
+ <table class="markdownTable">
1722
+ <tr class="markdownTableHead">
1723
+ <th class="markdownTableHeadNone">Name </th><th class="markdownTableHeadNone">Value </th></tr>
1724
+ <tr class="markdownTableRowOdd">
1725
+ <td class="markdownTableBodyNone"><code>GLFW_HAT_CENTERED</code> </td><td class="markdownTableBodyNone">0 </td></tr>
1726
+ <tr class="markdownTableRowEven">
1727
+ <td class="markdownTableBodyNone"><code>GLFW_HAT_UP</code> </td><td class="markdownTableBodyNone">1 </td></tr>
1728
+ <tr class="markdownTableRowOdd">
1729
+ <td class="markdownTableBodyNone"><code>GLFW_HAT_RIGHT</code> </td><td class="markdownTableBodyNone">2 </td></tr>
1730
+ <tr class="markdownTableRowEven">
1731
+ <td class="markdownTableBodyNone"><code>GLFW_HAT_DOWN</code> </td><td class="markdownTableBodyNone">4 </td></tr>
1732
+ <tr class="markdownTableRowOdd">
1733
+ <td class="markdownTableBodyNone"><code>GLFW_HAT_LEFT</code> </td><td class="markdownTableBodyNone">8 </td></tr>
1734
+ <tr class="markdownTableRowEven">
1735
+ <td class="markdownTableBodyNone"><code>GLFW_HAT_RIGHT_UP</code> </td><td class="markdownTableBodyNone"><code>GLFW_HAT_RIGHT</code> | <code>GLFW_HAT_UP</code> </td></tr>
1736
+ <tr class="markdownTableRowOdd">
1737
+ <td class="markdownTableBodyNone"><code>GLFW_HAT_RIGHT_DOWN</code> </td><td class="markdownTableBodyNone"><code>GLFW_HAT_RIGHT</code> | <code>GLFW_HAT_DOWN</code> </td></tr>
1738
+ <tr class="markdownTableRowEven">
1739
+ <td class="markdownTableBodyNone"><code>GLFW_HAT_LEFT_UP</code> </td><td class="markdownTableBodyNone"><code>GLFW_HAT_LEFT</code> | <code>GLFW_HAT_UP</code> </td></tr>
1740
+ <tr class="markdownTableRowOdd">
1741
+ <td class="markdownTableBodyNone"><code>GLFW_HAT_LEFT_DOWN</code> </td><td class="markdownTableBodyNone"><code>GLFW_HAT_LEFT</code> | <code>GLFW_HAT_DOWN</code> </td></tr>
1742
+ </table>
1743
+ <p>The diagonal directions are bitwise combinations of the primary (up, right, down and left) directions and you can test for these individually by ANDing it with the corresponding direction.</p>
1744
+ <div class="fragment"><div class="line"><span class="keywordflow">if</span> (hats[2] &amp; <a class="code hl_define" href="group__hat__state.html#ga252586e3bbde75f4b0e07ad3124867f5">GLFW_HAT_RIGHT</a>)</div>
1745
+ <div class="line">{</div>
1746
+ <div class="line"> <span class="comment">// State of hat 2 could be right-up, right or right-down</span></div>
1747
+ <div class="line">}</div>
1748
+ <div class="ttc" id="agroup__hat__state_html_ga252586e3bbde75f4b0e07ad3124867f5"><div class="ttname"><a href="group__hat__state.html#ga252586e3bbde75f4b0e07ad3124867f5">GLFW_HAT_RIGHT</a></div><div class="ttdeci">#define GLFW_HAT_RIGHT</div><div class="ttdef"><b>Definition</b> glfw3.h:357</div></div>
1749
+ </div><!-- fragment --><p>If the specified joystick is not present this function will return <code>NULL</code> but will not generate an error. This can be used instead of first calling <a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a>.</p>
1750
+ <dl class="params"><dt>Parameters</dt><dd>
1751
+ <table class="params">
1752
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The <a class="el" href="group__joysticks.html">joystick</a> to query. </td></tr>
1753
+ <tr><td class="paramdir">[out]</td><td class="paramname">count</td><td>Where to store the number of hat states in the returned array. This is set to zero if the joystick is not present or an error occurred. </td></tr>
1754
+ </table>
1755
+ </dd>
1756
+ </dl>
1757
+ <dl class="section return"><dt>Returns</dt><dd>An array of hat states, or <code>NULL</code> if the joystick is not present or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
1758
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1759
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned array is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected, this function is called again for that joystick or the library is terminated.</dd></dl>
1760
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1761
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#joystick_hat">Joystick hat states</a></dd></dl>
1762
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
1763
+
1764
+ </div>
1765
+ </div>
1766
+ <a id="gac6a8e769e18e0bcfa9097793fc2c3978" name="gac6a8e769e18e0bcfa9097793fc2c3978"></a>
1767
+ <h2 class="memtitle"><span class="permalink"><a href="#gac6a8e769e18e0bcfa9097793fc2c3978">&#9670;&#160;</a></span>glfwGetJoystickName()</h2>
1768
+
1769
+ <div class="memitem">
1770
+ <div class="memproto">
1771
+ <table class="memname">
1772
+ <tr>
1773
+ <td class="memname">const char * glfwGetJoystickName </td>
1774
+ <td>(</td>
1775
+ <td class="paramtype">int&#160;</td>
1776
+ <td class="paramname"><em>jid</em></td><td>)</td>
1777
+ <td></td>
1778
+ </tr>
1779
+ </table>
1780
+ </div><div class="memdoc">
1781
+ <p>This function returns the name, encoded as UTF-8, of the specified joystick. The returned string is allocated and freed by GLFW. You should not free it yourself.</p>
1782
+ <p>If the specified joystick is not present this function will return <code>NULL</code> but will not generate an error. This can be used instead of first calling <a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a>.</p>
1783
+ <dl class="params"><dt>Parameters</dt><dd>
1784
+ <table class="params">
1785
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The <a class="el" href="group__joysticks.html">joystick</a> to query. </td></tr>
1786
+ </table>
1787
+ </dd>
1788
+ </dl>
1789
+ <dl class="section return"><dt>Returns</dt><dd>The UTF-8 encoded name of the joystick, or <code>NULL</code> if the joystick is not present or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
1790
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1791
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected or the library is terminated.</dd></dl>
1792
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1793
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#joystick_name">Joystick name</a></dd></dl>
1794
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl>
1795
+
1796
+ </div>
1797
+ </div>
1798
+ <a id="ga6659411aec3c7fcef27780e2cb2d9600" name="ga6659411aec3c7fcef27780e2cb2d9600"></a>
1799
+ <h2 class="memtitle"><span class="permalink"><a href="#ga6659411aec3c7fcef27780e2cb2d9600">&#9670;&#160;</a></span>glfwGetJoystickGUID()</h2>
1800
+
1801
+ <div class="memitem">
1802
+ <div class="memproto">
1803
+ <table class="memname">
1804
+ <tr>
1805
+ <td class="memname">const char * glfwGetJoystickGUID </td>
1806
+ <td>(</td>
1807
+ <td class="paramtype">int&#160;</td>
1808
+ <td class="paramname"><em>jid</em></td><td>)</td>
1809
+ <td></td>
1810
+ </tr>
1811
+ </table>
1812
+ </div><div class="memdoc">
1813
+ <p>This function returns the SDL compatible GUID, as a UTF-8 encoded hexadecimal string, of the specified joystick. The returned string is allocated and freed by GLFW. You should not free it yourself.</p>
1814
+ <p>The GUID is what connects a joystick to a gamepad mapping. A connected joystick will always have a GUID even if there is no gamepad mapping assigned to it.</p>
1815
+ <p>If the specified joystick is not present this function will return <code>NULL</code> but will not generate an error. This can be used instead of first calling <a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a>.</p>
1816
+ <p>The GUID uses the format introduced in SDL 2.0.5. This GUID tries to uniquely identify the make and model of a joystick but does not identify a specific unit, e.g. all wired Xbox 360 controllers will have the same GUID on that platform. The GUID for a unit may vary between platforms depending on what hardware information the platform specific APIs provide.</p>
1817
+ <dl class="params"><dt>Parameters</dt><dd>
1818
+ <table class="params">
1819
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The <a class="el" href="group__joysticks.html">joystick</a> to query. </td></tr>
1820
+ </table>
1821
+ </dd>
1822
+ </dl>
1823
+ <dl class="section return"><dt>Returns</dt><dd>The UTF-8 encoded GUID of the joystick, or <code>NULL</code> if the joystick is not present or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
1824
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
1825
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected or the library is terminated.</dd></dl>
1826
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1827
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#gamepad">Gamepad input</a></dd></dl>
1828
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
1829
+
1830
+ </div>
1831
+ </div>
1832
+ <a id="ga6b2f72d64d636b48a727b437cbb7489e" name="ga6b2f72d64d636b48a727b437cbb7489e"></a>
1833
+ <h2 class="memtitle"><span class="permalink"><a href="#ga6b2f72d64d636b48a727b437cbb7489e">&#9670;&#160;</a></span>glfwSetJoystickUserPointer()</h2>
1834
+
1835
+ <div class="memitem">
1836
+ <div class="memproto">
1837
+ <table class="memname">
1838
+ <tr>
1839
+ <td class="memname">void glfwSetJoystickUserPointer </td>
1840
+ <td>(</td>
1841
+ <td class="paramtype">int&#160;</td>
1842
+ <td class="paramname"><em>jid</em>, </td>
1843
+ </tr>
1844
+ <tr>
1845
+ <td class="paramkey"></td>
1846
+ <td></td>
1847
+ <td class="paramtype">void *&#160;</td>
1848
+ <td class="paramname"><em>pointer</em>&#160;</td>
1849
+ </tr>
1850
+ <tr>
1851
+ <td></td>
1852
+ <td>)</td>
1853
+ <td></td><td></td>
1854
+ </tr>
1855
+ </table>
1856
+ </div><div class="memdoc">
1857
+ <p>This function sets the user-defined pointer of the specified joystick. The current value is retained until the joystick is disconnected. The initial value is <code>NULL</code>.</p>
1858
+ <p>This function may be called from the joystick callback, even for a joystick that is being disconnected.</p>
1859
+ <dl class="params"><dt>Parameters</dt><dd>
1860
+ <table class="params">
1861
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The joystick whose pointer to set. </td></tr>
1862
+ <tr><td class="paramdir">[in]</td><td class="paramname">pointer</td><td>The new value.</td></tr>
1863
+ </table>
1864
+ </dd>
1865
+ </dl>
1866
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1867
+ <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread. Access is not synchronized.</dd></dl>
1868
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#joystick_userptr">Joystick user pointer</a> </dd>
1869
+ <dd>
1870
+ <a class="el" href="group__input.html#ga18cefd7265d1fa04f3fd38a6746db5f3">glfwGetJoystickUserPointer</a></dd></dl>
1871
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
1872
+
1873
+ </div>
1874
+ </div>
1875
+ <a id="ga18cefd7265d1fa04f3fd38a6746db5f3" name="ga18cefd7265d1fa04f3fd38a6746db5f3"></a>
1876
+ <h2 class="memtitle"><span class="permalink"><a href="#ga18cefd7265d1fa04f3fd38a6746db5f3">&#9670;&#160;</a></span>glfwGetJoystickUserPointer()</h2>
1877
+
1878
+ <div class="memitem">
1879
+ <div class="memproto">
1880
+ <table class="memname">
1881
+ <tr>
1882
+ <td class="memname">void * glfwGetJoystickUserPointer </td>
1883
+ <td>(</td>
1884
+ <td class="paramtype">int&#160;</td>
1885
+ <td class="paramname"><em>jid</em></td><td>)</td>
1886
+ <td></td>
1887
+ </tr>
1888
+ </table>
1889
+ </div><div class="memdoc">
1890
+ <p>This function returns the current value of the user-defined pointer of the specified joystick. The initial value is <code>NULL</code>.</p>
1891
+ <p>This function may be called from the joystick callback, even for a joystick that is being disconnected.</p>
1892
+ <dl class="params"><dt>Parameters</dt><dd>
1893
+ <table class="params">
1894
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The joystick whose pointer to return.</td></tr>
1895
+ </table>
1896
+ </dd>
1897
+ </dl>
1898
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1899
+ <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread. Access is not synchronized.</dd></dl>
1900
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#joystick_userptr">Joystick user pointer</a> </dd>
1901
+ <dd>
1902
+ <a class="el" href="group__input.html#ga6b2f72d64d636b48a727b437cbb7489e">glfwSetJoystickUserPointer</a></dd></dl>
1903
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
1904
+
1905
+ </div>
1906
+ </div>
1907
+ <a id="gad0f676860f329d80f7e47e9f06a96f00" name="gad0f676860f329d80f7e47e9f06a96f00"></a>
1908
+ <h2 class="memtitle"><span class="permalink"><a href="#gad0f676860f329d80f7e47e9f06a96f00">&#9670;&#160;</a></span>glfwJoystickIsGamepad()</h2>
1909
+
1910
+ <div class="memitem">
1911
+ <div class="memproto">
1912
+ <table class="memname">
1913
+ <tr>
1914
+ <td class="memname">int glfwJoystickIsGamepad </td>
1915
+ <td>(</td>
1916
+ <td class="paramtype">int&#160;</td>
1917
+ <td class="paramname"><em>jid</em></td><td>)</td>
1918
+ <td></td>
1919
+ </tr>
1920
+ </table>
1921
+ </div><div class="memdoc">
1922
+ <p>This function returns whether the specified joystick is both present and has a gamepad mapping.</p>
1923
+ <p>If the specified joystick is present but does not have a gamepad mapping this function will return <code>GLFW_FALSE</code> but will not generate an error. Call <a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a> to check if a joystick is present regardless of whether it has a mapping.</p>
1924
+ <dl class="params"><dt>Parameters</dt><dd>
1925
+ <table class="params">
1926
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The <a class="el" href="group__joysticks.html">joystick</a> to query. </td></tr>
1927
+ </table>
1928
+ </dd>
1929
+ </dl>
1930
+ <dl class="section return"><dt>Returns</dt><dd><code>GLFW_TRUE</code> if a joystick is both present and has a gamepad mapping, or <code>GLFW_FALSE</code> otherwise.</dd></dl>
1931
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl>
1932
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1933
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#gamepad">Gamepad input</a> </dd>
1934
+ <dd>
1935
+ <a class="el" href="group__input.html#gadccddea8bce6113fa459de379ddaf051">glfwGetGamepadState</a></dd></dl>
1936
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
1937
+
1938
+ </div>
1939
+ </div>
1940
+ <a id="ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c" name="ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c"></a>
1941
+ <h2 class="memtitle"><span class="permalink"><a href="#ga2f60a0e5b7bd8d1b7344dc0a7cb32b4c">&#9670;&#160;</a></span>glfwSetJoystickCallback()</h2>
1942
+
1943
+ <div class="memitem">
1944
+ <div class="memproto">
1945
+ <table class="memname">
1946
+ <tr>
1947
+ <td class="memname"><a class="el" href="group__input.html#gaa21ad5986ae9a26077a40142efb56243">GLFWjoystickfun</a> glfwSetJoystickCallback </td>
1948
+ <td>(</td>
1949
+ <td class="paramtype"><a class="el" href="group__input.html#gaa21ad5986ae9a26077a40142efb56243">GLFWjoystickfun</a>&#160;</td>
1950
+ <td class="paramname"><em>callback</em></td><td>)</td>
1951
+ <td></td>
1952
+ </tr>
1953
+ </table>
1954
+ </div><div class="memdoc">
1955
+ <p>This function sets the joystick configuration callback, or removes the currently set callback. This is called when a joystick is connected to or disconnected from the system.</p>
1956
+ <p>For joystick connection and disconnection events to be delivered on all platforms, you need to call one of the <a class="el" href="input_guide.html#events">event processing</a> functions. Joystick disconnection may also be detected and the callback called by joystick functions. The function will then return whatever it returns if the joystick is not present.</p>
1957
+ <dl class="params"><dt>Parameters</dt><dd>
1958
+ <table class="params">
1959
+ <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
1960
+ </table>
1961
+ </dd>
1962
+ </dl>
1963
+ <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl>
1964
+ <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<span class="keywordtype">int</span> jid, <span class="keywordtype">int</span> event)</div>
1965
+ </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__input.html#gaa21ad5986ae9a26077a40142efb56243">function pointer type</a>.</dd></dl>
1966
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
1967
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
1968
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#joystick_event">Joystick configuration changes</a></dd></dl>
1969
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl>
1970
+
1971
+ </div>
1972
+ </div>
1973
+ <a id="gaed5104612f2fa8e66aa6e846652ad00f" name="gaed5104612f2fa8e66aa6e846652ad00f"></a>
1974
+ <h2 class="memtitle"><span class="permalink"><a href="#gaed5104612f2fa8e66aa6e846652ad00f">&#9670;&#160;</a></span>glfwUpdateGamepadMappings()</h2>
1975
+
1976
+ <div class="memitem">
1977
+ <div class="memproto">
1978
+ <table class="memname">
1979
+ <tr>
1980
+ <td class="memname">int glfwUpdateGamepadMappings </td>
1981
+ <td>(</td>
1982
+ <td class="paramtype">const char *&#160;</td>
1983
+ <td class="paramname"><em>string</em></td><td>)</td>
1984
+ <td></td>
1985
+ </tr>
1986
+ </table>
1987
+ </div><div class="memdoc">
1988
+ <p>This function parses the specified ASCII encoded string and updates the internal list with any gamepad mappings it finds. This string may contain either a single gamepad mapping or many mappings separated by newlines. The parser supports the full format of the <code>gamecontrollerdb.txt</code> source file including empty lines and comments.</p>
1989
+ <p>See <a class="el" href="input_guide.html#gamepad_mapping">Gamepad mappings</a> for a description of the format.</p>
1990
+ <p>If there is already a gamepad mapping for a given GUID in the internal list, it will be replaced by the one passed to this function. If the library is terminated and re-initialized the internal list will revert to the built-in default.</p>
1991
+ <dl class="params"><dt>Parameters</dt><dd>
1992
+ <table class="params">
1993
+ <tr><td class="paramdir">[in]</td><td class="paramname">string</td><td>The string containing the gamepad mappings. </td></tr>
1994
+ </table>
1995
+ </dd>
1996
+ </dl>
1997
+ <dl class="section return"><dt>Returns</dt><dd><code>GLFW_TRUE</code> if successful, or <code>GLFW_FALSE</code> if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
1998
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a>.</dd></dl>
1999
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
2000
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#gamepad">Gamepad input</a> </dd>
2001
+ <dd>
2002
+ <a class="el" href="group__input.html#gad0f676860f329d80f7e47e9f06a96f00">glfwJoystickIsGamepad</a> </dd>
2003
+ <dd>
2004
+ <a class="el" href="group__input.html#ga8aea73a1a25cc6c0486a617019f56728">glfwGetGamepadName</a></dd></dl>
2005
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
2006
+
2007
+ </div>
2008
+ </div>
2009
+ <a id="ga8aea73a1a25cc6c0486a617019f56728" name="ga8aea73a1a25cc6c0486a617019f56728"></a>
2010
+ <h2 class="memtitle"><span class="permalink"><a href="#ga8aea73a1a25cc6c0486a617019f56728">&#9670;&#160;</a></span>glfwGetGamepadName()</h2>
2011
+
2012
+ <div class="memitem">
2013
+ <div class="memproto">
2014
+ <table class="memname">
2015
+ <tr>
2016
+ <td class="memname">const char * glfwGetGamepadName </td>
2017
+ <td>(</td>
2018
+ <td class="paramtype">int&#160;</td>
2019
+ <td class="paramname"><em>jid</em></td><td>)</td>
2020
+ <td></td>
2021
+ </tr>
2022
+ </table>
2023
+ </div><div class="memdoc">
2024
+ <p>This function returns the human-readable name of the gamepad from the gamepad mapping assigned to the specified joystick.</p>
2025
+ <p>If the specified joystick is not present or does not have a gamepad mapping this function will return <code>NULL</code> but will not generate an error. Call <a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a> to check whether it is present regardless of whether it has a mapping.</p>
2026
+ <dl class="params"><dt>Parameters</dt><dd>
2027
+ <table class="params">
2028
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The <a class="el" href="group__joysticks.html">joystick</a> to query. </td></tr>
2029
+ </table>
2030
+ </dd>
2031
+ </dl>
2032
+ <dl class="section return"><dt>Returns</dt><dd>The UTF-8 encoded name of the gamepad, or <code>NULL</code> if the joystick is not present, does not have a mapping or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
2033
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl>
2034
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected, the gamepad mappings are updated or the library is terminated.</dd></dl>
2035
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
2036
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#gamepad">Gamepad input</a> </dd>
2037
+ <dd>
2038
+ <a class="el" href="group__input.html#gad0f676860f329d80f7e47e9f06a96f00">glfwJoystickIsGamepad</a></dd></dl>
2039
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
2040
+
2041
+ </div>
2042
+ </div>
2043
+ <a id="gadccddea8bce6113fa459de379ddaf051" name="gadccddea8bce6113fa459de379ddaf051"></a>
2044
+ <h2 class="memtitle"><span class="permalink"><a href="#gadccddea8bce6113fa459de379ddaf051">&#9670;&#160;</a></span>glfwGetGamepadState()</h2>
2045
+
2046
+ <div class="memitem">
2047
+ <div class="memproto">
2048
+ <table class="memname">
2049
+ <tr>
2050
+ <td class="memname">int glfwGetGamepadState </td>
2051
+ <td>(</td>
2052
+ <td class="paramtype">int&#160;</td>
2053
+ <td class="paramname"><em>jid</em>, </td>
2054
+ </tr>
2055
+ <tr>
2056
+ <td class="paramkey"></td>
2057
+ <td></td>
2058
+ <td class="paramtype"><a class="el" href="struct_g_l_f_wgamepadstate.html">GLFWgamepadstate</a> *&#160;</td>
2059
+ <td class="paramname"><em>state</em>&#160;</td>
2060
+ </tr>
2061
+ <tr>
2062
+ <td></td>
2063
+ <td>)</td>
2064
+ <td></td><td></td>
2065
+ </tr>
2066
+ </table>
2067
+ </div><div class="memdoc">
2068
+ <p>This function retrieves the state of the specified joystick remapped to an Xbox-like gamepad.</p>
2069
+ <p>If the specified joystick is not present or does not have a gamepad mapping this function will return <code>GLFW_FALSE</code> but will not generate an error. Call <a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a> to check whether it is present regardless of whether it has a mapping.</p>
2070
+ <p>The Guide button may not be available for input as it is often hooked by the system or the Steam client.</p>
2071
+ <p>Not all devices have all the buttons or axes provided by <a class="el" href="struct_g_l_f_wgamepadstate.html">GLFWgamepadstate</a>. Unavailable buttons and axes will always report <code>GLFW_RELEASE</code> and 0.0 respectively.</p>
2072
+ <dl class="params"><dt>Parameters</dt><dd>
2073
+ <table class="params">
2074
+ <tr><td class="paramdir">[in]</td><td class="paramname">jid</td><td>The <a class="el" href="group__joysticks.html">joystick</a> to query. </td></tr>
2075
+ <tr><td class="paramdir">[out]</td><td class="paramname">state</td><td>The gamepad input state of the joystick. </td></tr>
2076
+ </table>
2077
+ </dd>
2078
+ </dl>
2079
+ <dl class="section return"><dt>Returns</dt><dd><code>GLFW_TRUE</code> if successful, or <code>GLFW_FALSE</code> if no joystick is connected, it has no gamepad mapping or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
2080
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl>
2081
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
2082
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#gamepad">Gamepad input</a> </dd>
2083
+ <dd>
2084
+ <a class="el" href="group__input.html#gaed5104612f2fa8e66aa6e846652ad00f">glfwUpdateGamepadMappings</a> </dd>
2085
+ <dd>
2086
+ <a class="el" href="group__input.html#gad0f676860f329d80f7e47e9f06a96f00">glfwJoystickIsGamepad</a></dd></dl>
2087
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
2088
+
2089
+ </div>
2090
+ </div>
2091
+ <a id="gaba1f022c5eb07dfac421df34cdcd31dd" name="gaba1f022c5eb07dfac421df34cdcd31dd"></a>
2092
+ <h2 class="memtitle"><span class="permalink"><a href="#gaba1f022c5eb07dfac421df34cdcd31dd">&#9670;&#160;</a></span>glfwSetClipboardString()</h2>
2093
+
2094
+ <div class="memitem">
2095
+ <div class="memproto">
2096
+ <table class="memname">
2097
+ <tr>
2098
+ <td class="memname">void glfwSetClipboardString </td>
2099
+ <td>(</td>
2100
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
2101
+ <td class="paramname"><em>window</em>, </td>
2102
+ </tr>
2103
+ <tr>
2104
+ <td class="paramkey"></td>
2105
+ <td></td>
2106
+ <td class="paramtype">const char *&#160;</td>
2107
+ <td class="paramname"><em>string</em>&#160;</td>
2108
+ </tr>
2109
+ <tr>
2110
+ <td></td>
2111
+ <td>)</td>
2112
+ <td></td><td></td>
2113
+ </tr>
2114
+ </table>
2115
+ </div><div class="memdoc">
2116
+ <p>This function sets the system clipboard to the specified, UTF-8 encoded string.</p>
2117
+ <dl class="params"><dt>Parameters</dt><dd>
2118
+ <table class="params">
2119
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>Deprecated. Any valid window or <code>NULL</code>. </td></tr>
2120
+ <tr><td class="paramdir">[in]</td><td class="paramname">string</td><td>A UTF-8 encoded string.</td></tr>
2121
+ </table>
2122
+ </dd>
2123
+ </dl>
2124
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
2125
+ <dl class="section remark"><dt>Remarks</dt><dd><b>Windows:</b> The clipboard on Windows has a single global lock for reading and writing. GLFW tries to acquire it a few times, which is almost always enough. If it cannot acquire the lock then this function emits <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a> and returns. It is safe to try this multiple times.</dd></dl>
2126
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The specified string is copied before this function returns.</dd></dl>
2127
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
2128
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#clipboard">Clipboard input and output</a> </dd>
2129
+ <dd>
2130
+ <a class="el" href="group__input.html#ga71a5b20808ea92193d65c21b82580355">glfwGetClipboardString</a></dd></dl>
2131
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl>
2132
+
2133
+ </div>
2134
+ </div>
2135
+ <a id="ga71a5b20808ea92193d65c21b82580355" name="ga71a5b20808ea92193d65c21b82580355"></a>
2136
+ <h2 class="memtitle"><span class="permalink"><a href="#ga71a5b20808ea92193d65c21b82580355">&#9670;&#160;</a></span>glfwGetClipboardString()</h2>
2137
+
2138
+ <div class="memitem">
2139
+ <div class="memproto">
2140
+ <table class="memname">
2141
+ <tr>
2142
+ <td class="memname">const char * glfwGetClipboardString </td>
2143
+ <td>(</td>
2144
+ <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *&#160;</td>
2145
+ <td class="paramname"><em>window</em></td><td>)</td>
2146
+ <td></td>
2147
+ </tr>
2148
+ </table>
2149
+ </div><div class="memdoc">
2150
+ <p>This function returns the contents of the system clipboard, if it contains or is convertible to a UTF-8 encoded string. If the clipboard is empty or if its contents cannot be converted, <code>NULL</code> is returned and a <a class="el" href="group__errors.html#ga196e125ef261d94184e2b55c05762f14">GLFW_FORMAT_UNAVAILABLE</a> error is generated.</p>
2151
+ <dl class="params"><dt>Parameters</dt><dd>
2152
+ <table class="params">
2153
+ <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>Deprecated. Any valid window or <code>NULL</code>. </td></tr>
2154
+ </table>
2155
+ </dd>
2156
+ </dl>
2157
+ <dl class="section return"><dt>Returns</dt><dd>The contents of the clipboard as a UTF-8 encoded string, or <code>NULL</code> if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
2158
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga196e125ef261d94184e2b55c05762f14">GLFW_FORMAT_UNAVAILABLE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
2159
+ <dl class="section remark"><dt>Remarks</dt><dd><b>Windows:</b> The clipboard on Windows has a single global lock for reading and writing. GLFW tries to acquire it a few times, which is almost always enough. If it cannot acquire the lock then this function emits <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a> and returns. It is safe to try this multiple times.</dd></dl>
2160
+ <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the next call to <a class="el" href="group__input.html#ga71a5b20808ea92193d65c21b82580355">glfwGetClipboardString</a> or <a class="el" href="group__input.html#gaba1f022c5eb07dfac421df34cdcd31dd">glfwSetClipboardString</a>, or until the library is terminated.</dd></dl>
2161
+ <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
2162
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#clipboard">Clipboard input and output</a> </dd>
2163
+ <dd>
2164
+ <a class="el" href="group__input.html#gaba1f022c5eb07dfac421df34cdcd31dd">glfwSetClipboardString</a></dd></dl>
2165
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl>
2166
+
2167
+ </div>
2168
+ </div>
2169
+ <a id="gaa6cf4e7a77158a3b8fd00328b1720a4a" name="gaa6cf4e7a77158a3b8fd00328b1720a4a"></a>
2170
+ <h2 class="memtitle"><span class="permalink"><a href="#gaa6cf4e7a77158a3b8fd00328b1720a4a">&#9670;&#160;</a></span>glfwGetTime()</h2>
2171
+
2172
+ <div class="memitem">
2173
+ <div class="memproto">
2174
+ <table class="memname">
2175
+ <tr>
2176
+ <td class="memname">double glfwGetTime </td>
2177
+ <td>(</td>
2178
+ <td class="paramtype">void&#160;</td>
2179
+ <td class="paramname"></td><td>)</td>
2180
+ <td></td>
2181
+ </tr>
2182
+ </table>
2183
+ </div><div class="memdoc">
2184
+ <p>This function returns the current GLFW time, in seconds. Unless the time has been set using <a class="el" href="group__input.html#gaf59589ef6e8b8c8b5ad184b25afd4dc0">glfwSetTime</a> it measures time elapsed since GLFW was initialized.</p>
2185
+ <p>This function and <a class="el" href="group__input.html#gaf59589ef6e8b8c8b5ad184b25afd4dc0">glfwSetTime</a> are helper functions on top of <a class="el" href="group__input.html#ga3289ee876572f6e91f06df3a24824443">glfwGetTimerFrequency</a> and <a class="el" href="group__input.html#ga09b2bd37d328e0b9456c7ec575cc26aa">glfwGetTimerValue</a>.</p>
2186
+ <p>The resolution of the timer is system dependent, but is usually on the order of a few micro- or nanoseconds. It uses the highest-resolution monotonic time source on each operating system.</p>
2187
+ <dl class="section return"><dt>Returns</dt><dd>The current time, in seconds, or zero if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
2188
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
2189
+ <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread. Reading and writing of the internal base time is not atomic, so it needs to be externally synchronized with calls to <a class="el" href="group__input.html#gaf59589ef6e8b8c8b5ad184b25afd4dc0">glfwSetTime</a>.</dd></dl>
2190
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#time">Time input</a></dd></dl>
2191
+ <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl>
2192
+
2193
+ </div>
2194
+ </div>
2195
+ <a id="gaf59589ef6e8b8c8b5ad184b25afd4dc0" name="gaf59589ef6e8b8c8b5ad184b25afd4dc0"></a>
2196
+ <h2 class="memtitle"><span class="permalink"><a href="#gaf59589ef6e8b8c8b5ad184b25afd4dc0">&#9670;&#160;</a></span>glfwSetTime()</h2>
2197
+
2198
+ <div class="memitem">
2199
+ <div class="memproto">
2200
+ <table class="memname">
2201
+ <tr>
2202
+ <td class="memname">void glfwSetTime </td>
2203
+ <td>(</td>
2204
+ <td class="paramtype">double&#160;</td>
2205
+ <td class="paramname"><em>time</em></td><td>)</td>
2206
+ <td></td>
2207
+ </tr>
2208
+ </table>
2209
+ </div><div class="memdoc">
2210
+ <p>This function sets the current GLFW time, in seconds. The value must be a positive finite number less than or equal to 18446744073.0, which is approximately 584.5 years.</p>
2211
+ <p>This function and <a class="el" href="group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a">glfwGetTime</a> are helper functions on top of <a class="el" href="group__input.html#ga3289ee876572f6e91f06df3a24824443">glfwGetTimerFrequency</a> and <a class="el" href="group__input.html#ga09b2bd37d328e0b9456c7ec575cc26aa">glfwGetTimerValue</a>.</p>
2212
+ <dl class="params"><dt>Parameters</dt><dd>
2213
+ <table class="params">
2214
+ <tr><td class="paramdir">[in]</td><td class="paramname">time</td><td>The new value, in seconds.</td></tr>
2215
+ </table>
2216
+ </dd>
2217
+ </dl>
2218
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a>.</dd></dl>
2219
+ <dl class="section remark"><dt>Remarks</dt><dd>The upper limit of GLFW time is calculated as floor((2<sup>64</sup> - 1) / 10<sup>9</sup>) and is due to implementations storing nanoseconds in 64 bits. The limit may be increased in the future.</dd></dl>
2220
+ <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread. Reading and writing of the internal base time is not atomic, so it needs to be externally synchronized with calls to <a class="el" href="group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a">glfwGetTime</a>.</dd></dl>
2221
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#time">Time input</a></dd></dl>
2222
+ <dl class="section since"><dt>Since</dt><dd>Added in version 2.2. </dd></dl>
2223
+
2224
+ </div>
2225
+ </div>
2226
+ <a id="ga09b2bd37d328e0b9456c7ec575cc26aa" name="ga09b2bd37d328e0b9456c7ec575cc26aa"></a>
2227
+ <h2 class="memtitle"><span class="permalink"><a href="#ga09b2bd37d328e0b9456c7ec575cc26aa">&#9670;&#160;</a></span>glfwGetTimerValue()</h2>
2228
+
2229
+ <div class="memitem">
2230
+ <div class="memproto">
2231
+ <table class="memname">
2232
+ <tr>
2233
+ <td class="memname">uint64_t glfwGetTimerValue </td>
2234
+ <td>(</td>
2235
+ <td class="paramtype">void&#160;</td>
2236
+ <td class="paramname"></td><td>)</td>
2237
+ <td></td>
2238
+ </tr>
2239
+ </table>
2240
+ </div><div class="memdoc">
2241
+ <p>This function returns the current value of the raw timer, measured in 1&#160;/&#160;frequency seconds. To get the frequency, call <a class="el" href="group__input.html#ga3289ee876572f6e91f06df3a24824443">glfwGetTimerFrequency</a>.</p>
2242
+ <dl class="section return"><dt>Returns</dt><dd>The value of the timer, or zero if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
2243
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
2244
+ <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl>
2245
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#time">Time input</a> </dd>
2246
+ <dd>
2247
+ <a class="el" href="group__input.html#ga3289ee876572f6e91f06df3a24824443">glfwGetTimerFrequency</a></dd></dl>
2248
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl>
2249
+
2250
+ </div>
2251
+ </div>
2252
+ <a id="ga3289ee876572f6e91f06df3a24824443" name="ga3289ee876572f6e91f06df3a24824443"></a>
2253
+ <h2 class="memtitle"><span class="permalink"><a href="#ga3289ee876572f6e91f06df3a24824443">&#9670;&#160;</a></span>glfwGetTimerFrequency()</h2>
2254
+
2255
+ <div class="memitem">
2256
+ <div class="memproto">
2257
+ <table class="memname">
2258
+ <tr>
2259
+ <td class="memname">uint64_t glfwGetTimerFrequency </td>
2260
+ <td>(</td>
2261
+ <td class="paramtype">void&#160;</td>
2262
+ <td class="paramname"></td><td>)</td>
2263
+ <td></td>
2264
+ </tr>
2265
+ </table>
2266
+ </div><div class="memdoc">
2267
+ <p>This function returns the frequency, in Hz, of the raw timer.</p>
2268
+ <dl class="section return"><dt>Returns</dt><dd>The frequency of the timer, in Hz, or zero if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
2269
+ <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
2270
+ <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl>
2271
+ <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#time">Time input</a> </dd>
2272
+ <dd>
2273
+ <a class="el" href="group__input.html#ga09b2bd37d328e0b9456c7ec575cc26aa">glfwGetTimerValue</a></dd></dl>
2274
+ <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl>
2275
+
2276
+ </div>
2277
+ </div>
2278
+ </div><!-- contents -->
2279
+ <address class="footer">
2280
+ <p>
2281
+ Last update on Fri Feb 23 2024 for GLFW 3.4.0
2282
+ </p>
2283
+ </address>
2284
+ </body>
2285
+ </html>