Platformer in OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

257 rivejä
22 KiB

5 vuotta sitten
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.11"/>
  7. <title>GLFW: New features</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. <link href="extra.css" rel="stylesheet" type="text/css"/>
  19. </head>
  20. <body>
  21. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  22. <div id="titlearea">
  23. <div class="glfwheader">
  24. <a href="http://www.glfw.org/" id="glfwhome">GLFW</a>
  25. <ul class="glfwnavbar">
  26. <li><a href="http://www.glfw.org/documentation.html">Documentation</a></li>
  27. <li><a href="http://www.glfw.org/download.html">Download</a></li>
  28. <li><a href="http://www.glfw.org/media.html">Media</a></li>
  29. <li><a href="http://www.glfw.org/community.html">Community</a></li>
  30. </ul>
  31. </div>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.11 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  42. <li><a href="modules.html"><span>Modules</span></a></li>
  43. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  44. <li><a href="files.html"><span>Files</span></a></li>
  45. <li>
  46. <div id="MSearchBox" class="MSearchBoxInactive">
  47. <span class="left">
  48. <img id="MSearchSelect" src="search/mag_sel.png"
  49. onmouseover="return searchBox.OnSearchSelectShow()"
  50. onmouseout="return searchBox.OnSearchSelectHide()"
  51. alt=""/>
  52. <input type="text" id="MSearchField" value="Search" accesskey="S"
  53. onfocus="searchBox.OnSearchFieldFocus(true)"
  54. onblur="searchBox.OnSearchFieldFocus(false)"
  55. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  56. </span><span class="right">
  57. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  58. </span>
  59. </div>
  60. </li>
  61. </ul>
  62. </div>
  63. <!-- window showing the filter options -->
  64. <div id="MSearchSelectWindow"
  65. onmouseover="return searchBox.OnSearchSelectShow()"
  66. onmouseout="return searchBox.OnSearchSelectHide()"
  67. onkeydown="return searchBox.OnSearchSelectKey(event)">
  68. </div>
  69. <!-- iframe showing the search results (closed by default) -->
  70. <div id="MSearchResultsWindow">
  71. <iframe src="javascript:void(0)" frameborder="0"
  72. name="MSearchResults" id="MSearchResults">
  73. </iframe>
  74. </div>
  75. </div><!-- top -->
  76. <div class="header">
  77. <div class="headertitle">
  78. <div class="title">New features </div> </div>
  79. </div><!--header-->
  80. <div class="contents">
  81. <div class="textblock"><h1><a class="anchor" id="news_32"></a>
  82. New features in 3.2</h1>
  83. <h2><a class="anchor" id="news_32_vulkan"></a>
  84. Support for Vulkan</h2>
  85. <p>GLFW now supports basic integration with Vulkan with <a class="el" href="group__vulkan.html#ga2e7f30931e02464b5bc8d0d4b6f9fe2b">glfwVulkanSupported</a>, <a class="el" href="group__vulkan.html#ga1abcbe61033958f22f63ef82008874b1">glfwGetRequiredInstanceExtensions</a>, <a class="el" href="group__vulkan.html#gadf228fac94c5fd8f12423ec9af9ff1e9">glfwGetInstanceProcAddress</a>, <a class="el" href="group__vulkan.html#gaff3823355cdd7e2f3f9f4d9ea9518d92">glfwGetPhysicalDevicePresentationSupport</a> and <a class="el" href="group__vulkan.html#ga1a24536bec3f80b08ead18e28e6ae965">glfwCreateWindowSurface</a>. Vulkan header inclusion can be selected with <a class="el" href="build_guide.html#build_macros">GLFW_INCLUDE_VULKAN</a>.</p>
  86. <h2><a class="anchor" id="news_32_setwindowmonitor"></a>
  87. Window mode switching</h2>
  88. <p>GLFW now supports switching between windowed and full screen modes and updating the monitor and desired resolution and refresh rate of full screen windows with <a class="el" href="group__window.html#ga81c76c418af80a1cce7055bccb0ae0a7">glfwSetWindowMonitor</a>.</p>
  89. <h2><a class="anchor" id="news_32_maximize"></a>
  90. Window maxmimization support</h2>
  91. <p>GLFW now supports window maximization with <a class="el" href="group__window.html#ga3f541387449d911274324ae7f17ec56b">glfwMaximizeWindow</a> and the <a class="el" href="window_guide.html#window_attribs_wnd">GLFW_MAXIMIZED</a> window hint and attribute.</p>
  92. <h2><a class="anchor" id="news_32_focus"></a>
  93. Window input focus control</h2>
  94. <p>GLFW now supports giving windows input focus with <a class="el" href="group__window.html#ga873780357abd3f3a081d71a40aae45a1">glfwFocusWindow</a>.</p>
  95. <h2><a class="anchor" id="news_32_sizelimits"></a>
  96. Window size limit support</h2>
  97. <p>GLFW now supports setting both absolute and relative window size limits with <a class="el" href="group__window.html#gac314fa6cec7d2d307be9963e2709cc90">glfwSetWindowSizeLimits</a> and <a class="el" href="group__window.html#ga72ac8cb1ee2e312a878b55153d81b937">glfwSetWindowAspectRatio</a>.</p>
  98. <h2><a class="anchor" id="news_32_keyname"></a>
  99. Localized key names</h2>
  100. <p>GLFW now supports querying the localized name of printable keys with <a class="el" href="group__input.html#ga237a182e5ec0b21ce64543f3b5e7e2be">glfwGetKeyName</a>, either by key token or by scancode.</p>
  101. <h2><a class="anchor" id="news_32_waittimeout"></a>
  102. Wait for events with timeout</h2>
  103. <p>GLFW now supports waiting for events for a set amount of time with <a class="el" href="group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf">glfwWaitEventsTimeout</a>.</p>
  104. <h2><a class="anchor" id="news_32_icon"></a>
  105. Window icon support</h2>
  106. <p>GLFW now supports setting the icon of windows with <a class="el" href="group__window.html#gadd7ccd39fe7a7d1f0904666ae5932dc5">glfwSetWindowIcon</a>.</p>
  107. <h2><a class="anchor" id="news_32_timer"></a>
  108. Raw timer access</h2>
  109. <p>GLFW now supports raw timer values with <a class="el" href="group__input.html#ga09b2bd37d328e0b9456c7ec575cc26aa">glfwGetTimerValue</a> and <a class="el" href="group__input.html#ga3289ee876572f6e91f06df3a24824443">glfwGetTimerFrequency</a>.</p>
  110. <h2><a class="anchor" id="news_32_joystick"></a>
  111. Joystick connection callback</h2>
  112. <p>GLFW now supports notifying when a joystick has been connected or disconnected with <a class="el" href="group__input.html#gab1dc8379f1b82bb660a6b9c9fa06ca07">glfwSetJoystickCallback</a>.</p>
  113. <h2><a class="anchor" id="news_32_noapi"></a>
  114. Context-less windows</h2>
  115. <p>GLFW now supports creating windows without a OpenGL or OpenGL ES context with <a class="el" href="window_guide.html#window_hints_ctx">GLFW_NO_API</a>.</p>
  116. <h2><a class="anchor" id="news_32_contextapi"></a>
  117. Run-time context creation API selection</h2>
  118. <p>GLFW now supports selecting the context creation API at run-time with the <a class="el" href="window_guide.html#window_hints_ctx">GLFW_CONTEXT_CREATION_API</a> window hint value.</p>
  119. <h2><a class="anchor" id="news_32_noerror"></a>
  120. Error-free context creation</h2>
  121. <p>GLFW now supports creating OpenGL and OpenGL ES contexts that do not emit errors with the <a class="el" href="window_guide.html#window_hints_ctx">GLFW_CONTEXT_NO_ERROR</a> window hint, provided the machine supports the <code>GL_KHR_no_error</code> extension.</p>
  122. <h2><a class="anchor" id="news_32_cmake"></a>
  123. CMake config-file package support</h2>
  124. <p>GLFW now supports being used as a <a class="el" href="build_guide.html#build_link_cmake_package">config-file package</a> from other projects for easy linking with the library and its dependencies.</p>
  125. <h1><a class="anchor" id="news_31"></a>
  126. New features in 3.1</h1>
  127. <p>These are the release highlights. For a full list of changes see the <a href="http://www.glfw.org/changelog.html">version history</a>.</p>
  128. <h2><a class="anchor" id="news_31_cursor"></a>
  129. Custom mouse cursor images</h2>
  130. <p>GLFW now supports creating and setting both custom cursor images and standard cursor shapes. They are created with <a class="el" href="group__input.html#gafca356935e10135016aa49ffa464c355">glfwCreateCursor</a> or <a class="el" href="group__input.html#gaa65f416d03ebbbb5b8db71a489fcb894">glfwCreateStandardCursor</a>, set with <a class="el" href="group__input.html#gad3b4f38c8d5dae036bc8fa959e18343e">glfwSetCursor</a> and destroyed with <a class="el" href="group__input.html#ga81b952cd1764274d0db7fb3c5a79ba6a">glfwDestroyCursor</a>.</p>
  131. <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_object">Cursor objects</a></dd></dl>
  132. <h2><a class="anchor" id="news_31_drop"></a>
  133. Path drop event</h2>
  134. <p>GLFW now provides a callback for receiving the paths of files and directories dropped onto GLFW windows. The callback is set with <a class="el" href="group__input.html#ga41291bf15dd3ff564b3143aa6dc74a4b">glfwSetDropCallback</a>.</p>
  135. <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#path_drop">Path drop input</a></dd></dl>
  136. <h2><a class="anchor" id="news_31_emptyevent"></a>
  137. Main thread wake-up</h2>
  138. <p>GLFW now provides the <a class="el" href="group__window.html#gab5997a25187e9fd5c6f2ecbbc8dfd7e9">glfwPostEmptyEvent</a> function for posting an empty event from another thread to the main thread event queue, causing <a class="el" href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">glfwWaitEvents</a> to return.</p>
  139. <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#events">Event processing</a></dd></dl>
  140. <h2><a class="anchor" id="news_31_framesize"></a>
  141. Window frame size query</h2>
  142. <p>GLFW now supports querying the size, on each side, of the frame around the client area of a window, with <a class="el" href="group__window.html#ga1a9fd382058c53101b21cf211898f1f1">glfwGetWindowFrameSize</a>.</p>
  143. <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_size">Window size</a></dd></dl>
  144. <h2><a class="anchor" id="news_31_autoiconify"></a>
  145. Simultaneous multi-monitor rendering</h2>
  146. <p>GLFW now supports disabling auto-iconification of full screen windows with the <a class="el" href="window_guide.html#window_hints_wnd">GLFW_AUTO_ICONIFY</a> window hint. This is intended for people building multi-monitor installations, where you need windows to stay in full screen despite losing input focus.</p>
  147. <h2><a class="anchor" id="news_31_floating"></a>
  148. Floating windows</h2>
  149. <p>GLFW now supports floating windows, also called topmost or always on top, for easier debugging with the <a class="el" href="window_guide.html#window_hints_wnd">GLFW_FLOATING</a> window hint.</p>
  150. <h2><a class="anchor" id="news_31_focused"></a>
  151. Initially unfocused windows</h2>
  152. <p>GLFW now supports preventing a windowed mode window from gaining input focus on creation, with the <a class="el" href="window_guide.html#window_hints_wnd">GLFW_FOCUSED</a> window hint.</p>
  153. <h2><a class="anchor" id="news_31_direct"></a>
  154. Direct access for window attributes and cursor position</h2>
  155. <p>GLFW now queries the window input focus, visibility and iconification attributes and the cursor position directly instead of returning cached data.</p>
  156. <h2><a class="anchor" id="news_31_charmods"></a>
  157. Character with modifiers callback</h2>
  158. <p>GLFW now provides a callback for character events with modifier key bits. The callback is set with <a class="el" href="group__input.html#ga3f55ef5dc03a374e567f068b13c94afc">glfwSetCharModsCallback</a>. Unlike the regular character callback, this will report character events that will not result in a character being input, for example if the Control key is held down.</p>
  159. <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#input_char">Text input</a></dd></dl>
  160. <h2><a class="anchor" id="news_31_single"></a>
  161. Single buffered framebuffers</h2>
  162. <p>GLFW now supports the creation of single buffered windows, with the <a class="el" href="window_guide.html#window_hints_fb">GLFW_DOUBLEBUFFER</a> window hint.</p>
  163. <h2><a class="anchor" id="news_31_glext"></a>
  164. Macro for including extension header</h2>
  165. <p>GLFW now includes the extension header appropriate for the chosen OpenGL or OpenGL ES header when <a class="el" href="build_guide.html#build_macros">GLFW_INCLUDE_GLEXT</a> is defined. GLFW does not provide these headers. They must be provided by your development environment or your OpenGL or OpenGL ES SDK.</p>
  166. <h2><a class="anchor" id="news_31_release"></a>
  167. Context release behaviors</h2>
  168. <p>GLFW now supports controlling whether the pipeline is flushed when a context is made non-current, with the <a class="el" href="window_guide.html#window_hints_ctx">GLFW_CONTEXT_RELEASE_BEHAVIOR</a> window hint, provided the machine supports the <code>GL_KHR_context_flush_control</code> extension.</p>
  169. <h2><a class="anchor" id="news_31_wayland"></a>
  170. (Experimental) Wayland support</h2>
  171. <p>GLFW now has an <em>experimental</em> Wayland display protocol backend that can be selected on Linux with a CMake option.</p>
  172. <h2><a class="anchor" id="news_31_mir"></a>
  173. (Experimental) Mir support</h2>
  174. <p>GLFW now has an <em>experimental</em> Mir display server backend that can be selected on Linux with a CMake option.</p>
  175. <h1><a class="anchor" id="news_30"></a>
  176. New features in 3.0</h1>
  177. <p>These are the release highlights. For a full list of changes see the <a href="http://www.glfw.org/changelog.html">version history</a>.</p>
  178. <h2><a class="anchor" id="news_30_cmake"></a>
  179. CMake build system</h2>
  180. <p>GLFW now uses the CMake build system instead of the various makefiles and project files used by earlier versions. CMake is available for all platforms supported by GLFW, is present in most package systems and can generate makefiles and/or project files for most popular development environments.</p>
  181. <p>For more information on how to use CMake, see the <a href="http://cmake.org/cmake/help/documentation.html">CMake manual</a>.</p>
  182. <h2><a class="anchor" id="news_30_multiwnd"></a>
  183. Multi-window support</h2>
  184. <p>GLFW now supports the creation of multiple windows, each with their own OpenGL or OpenGL ES context, and all window functions now take a window handle. Event callbacks are now per-window and are provided with the handle of the window that received the event. The <a class="el" href="group__context.html#ga1c04dc242268f827290fe40aa1c91157">glfwMakeContextCurrent</a> function has been added to select which context is current on a given thread.</p>
  185. <h2><a class="anchor" id="news_30_multimon"></a>
  186. Multi-monitor support</h2>
  187. <p>GLFW now explicitly supports multiple monitors. They can be enumerated with <a class="el" href="group__monitor.html#ga3fba51c8bd36491d4712aa5bd074a537">glfwGetMonitors</a>, queried with <a class="el" href="group__monitor.html#ga820b0ce9a5237d645ea7cbb4bd383458">glfwGetVideoModes</a>, <a class="el" href="group__monitor.html#ga102f54e7acc9149edbcf0997152df8c9">glfwGetMonitorPos</a>, <a class="el" href="group__monitor.html#ga79a34ee22ff080ca954a9663e4679daf">glfwGetMonitorName</a> and <a class="el" href="group__monitor.html#ga7d8bffc6c55539286a6bd20d32a8d7ea">glfwGetMonitorPhysicalSize</a>, and specified at window creation to make the newly created window full screen on that specific monitor.</p>
  188. <h2><a class="anchor" id="news_30_unicode"></a>
  189. Unicode support</h2>
  190. <p>All string arguments to GLFW functions and all strings returned by GLFW now use the UTF-8 encoding. This includes the window title, error string, clipboard text, monitor and joystick names as well as the extension function arguments (as ASCII is a subset of UTF-8).</p>
  191. <h2><a class="anchor" id="news_30_clipboard"></a>
  192. Clipboard text I/O</h2>
  193. <p>GLFW now supports reading and writing plain text to and from the system clipboard, with the <a class="el" href="group__input.html#ga5aba1d704d9ab539282b1fbe9f18bb94">glfwGetClipboardString</a> and <a class="el" href="group__input.html#gaba1f022c5eb07dfac421df34cdcd31dd">glfwSetClipboardString</a> functions.</p>
  194. <h2><a class="anchor" id="news_30_gamma"></a>
  195. Gamma ramp support</h2>
  196. <p>GLFW now supports setting and reading back the gamma ramp of monitors, with the <a class="el" href="group__monitor.html#gab7c41deb2219bde3e1eb756ddaa9ec80">glfwGetGammaRamp</a> and <a class="el" href="group__monitor.html#ga583f0ffd0d29613d8cd172b996bbf0dd">glfwSetGammaRamp</a> functions. There is also <a class="el" href="group__monitor.html#ga6ac582625c990220785ddd34efa3169a">glfwSetGamma</a>, which generates a ramp from a gamma value and then sets it.</p>
  197. <h2><a class="anchor" id="news_30_gles"></a>
  198. OpenGL ES support</h2>
  199. <p>GLFW now supports the creation of OpenGL ES contexts, by setting the <code>GLFW_CLIENT_API</code> window hint to <code>GLFW_OPENGL_ES_API</code>, where creation of such contexts are supported. Note that GLFW <em>does not implement</em> OpenGL ES, so your driver must provide support in a way usable by GLFW. Modern Nvidia and Intel drivers support creation of OpenGL ES context using the GLX and WGL APIs, while AMD provides an EGL implementation instead.</p>
  200. <h2><a class="anchor" id="news_30_egl"></a>
  201. (Experimental) EGL support</h2>
  202. <p>GLFW now has an experimental EGL context creation back end that can be selected through CMake options.</p>
  203. <h2><a class="anchor" id="news_30_hidpi"></a>
  204. High-DPI support</h2>
  205. <p>GLFW now supports high-DPI monitors on both Windows and OS X, giving windows full resolution framebuffers where other UI elements are scaled up. To achieve this, <a class="el" href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a> and <a class="el" href="group__window.html#ga3203461a5303bf289f2e05f854b2f7cf">glfwSetFramebufferSizeCallback</a> have been added. These work with pixels, while the rest of the GLFW API works with screen coordinates. This is important as OpenGL uses pixels, not screen coordinates.</p>
  206. <h2><a class="anchor" id="news_30_error"></a>
  207. Error callback</h2>
  208. <p>GLFW now has an error callback, which can provide your application with much more detailed diagnostics than was previously possible. The callback is passed an error code and a description string.</p>
  209. <h2><a class="anchor" id="news_30_wndptr"></a>
  210. Per-window user pointer</h2>
  211. <p>Each window now has a user-defined pointer, retrieved with <a class="el" href="group__window.html#ga17807ce0f45ac3f8bb50d6dcc59a4e06">glfwGetWindowUserPointer</a> and set with <a class="el" href="group__window.html#ga3d2fc6026e690ab31a13f78bc9fd3651">glfwSetWindowUserPointer</a>, to make it easier to integrate GLFW into C++ code.</p>
  212. <h2><a class="anchor" id="news_30_iconifyfun"></a>
  213. Window iconification callback</h2>
  214. <p>Each window now has a callback for iconification and restoration events, which is set with <a class="el" href="group__window.html#gab1ea7263081c0e073b8d5b91d6ffd367">glfwSetWindowIconifyCallback</a>.</p>
  215. <h2><a class="anchor" id="news_30_wndposfun"></a>
  216. Window position callback</h2>
  217. <p>Each window now has a callback for position events, which is set with <a class="el" href="group__window.html#ga2837d4d240659feb4268fcb6530a6ba1">glfwSetWindowPosCallback</a>.</p>
  218. <h2><a class="anchor" id="news_30_wndpos"></a>
  219. Window position query</h2>
  220. <p>The position of a window can now be retrieved using <a class="el" href="group__window.html#ga73cb526c000876fd8ddf571570fdb634">glfwGetWindowPos</a>.</p>
  221. <h2><a class="anchor" id="news_30_focusfun"></a>
  222. Window focus callback</h2>
  223. <p>Each windows now has a callback for focus events, which is set with <a class="el" href="group__window.html#ga25d1c584edb375d7711c5c3548ba711f">glfwSetWindowFocusCallback</a>.</p>
  224. <h2><a class="anchor" id="news_30_enterleave"></a>
  225. Cursor enter/leave callback</h2>
  226. <p>Each window now has a callback for when the mouse cursor enters or leaves its client area, which is set with <a class="el" href="group__input.html#gaa299c41dd0a3d171d166354e01279e04">glfwSetCursorEnterCallback</a>.</p>
  227. <h2><a class="anchor" id="news_30_wndtitle"></a>
  228. Initial window title</h2>
  229. <p>The title of a window is now specified at creation time, as one of the arguments to <a class="el" href="group__window.html#ga5c336fddf2cbb5b92f65f10fb6043344">glfwCreateWindow</a>.</p>
  230. <h2><a class="anchor" id="news_30_hidden"></a>
  231. Hidden windows</h2>
  232. <p>Windows can now be hidden with <a class="el" href="group__window.html#ga49401f82a1ba5f15db5590728314d47c">glfwHideWindow</a>, shown using <a class="el" href="group__window.html#ga61be47917b72536a148300f46494fc66">glfwShowWindow</a> and created initially hidden with the <code>GLFW_VISIBLE</code> window hint. This allows for off-screen rendering in a way compatible with most drivers, as well as moving a window to a specific position before showing it.</p>
  233. <h2><a class="anchor" id="news_30_undecorated"></a>
  234. Undecorated windows</h2>
  235. <p>Windowed mode windows can now be created without decorations, e.g. things like a frame, a title bar, with the <code>GLFW_DECORATED</code> window hint. This allows for the creation of things like splash screens.</p>
  236. <h2><a class="anchor" id="news_30_keymods"></a>
  237. Modifier key bit masks</h2>
  238. <p><a class="el" href="group__mods.html">Modifier key bit mask</a> parameters have been added to the <a class="el" href="group__input.html#ga39893a4a7e7c3239c98d29c9e084350c">mouse button</a> and <a class="el" href="group__input.html#ga0192a232a41e4e82948217c8ba94fdfd">key</a> callbacks.</p>
  239. <h2><a class="anchor" id="news_30_scancode"></a>
  240. Platform-specific scancodes</h2>
  241. <p>A scancode parameter has been added to the <a class="el" href="group__input.html#ga0192a232a41e4e82948217c8ba94fdfd">key callback</a>. Keys that don't have a <a class="el" href="group__keys.html">key token</a> still get passed on with the key parameter set to <code>GLFW_KEY_UNKNOWN</code>. These scancodes will vary between machines and are intended to be used for key bindings.</p>
  242. <h2><a class="anchor" id="news_30_jsname"></a>
  243. Joystick names</h2>
  244. <p>The name of a joystick can now be retrieved using <a class="el" href="group__input.html#gac8d7f6107e05cfd106cfba973ab51e19">glfwGetJoystickName</a>.</p>
  245. <h2><a class="anchor" id="news_30_doxygen"></a>
  246. Doxygen documentation</h2>
  247. <p>You are reading it. </p>
  248. </div></div><!-- contents -->
  249. <address class="footer">
  250. <p>
  251. Last update on Thu Aug 18 2016 for GLFW 3.2.1
  252. </p>
  253. </address>
  254. </body>
  255. </html>