Explorar o código

update changelog (sokol_imgui.h touch input improvements)

Andre Weissflog %!s(int64=2) %!d(string=hai) anos
pai
achega
27f347199e
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      CHANGELOG.md

+ 9 - 1
CHANGELOG.md

@@ -1,6 +1,8 @@
 ## Updates
 ## Updates
 
 
-- **20-May-2023**: some minor event-related cleanup in sokol_app.h:
+- **20-May-2023**: some minor event-related cleanup in sokol_app.h and
+  a touchscreen fix in sokol_imgui.h
+
     - in the event `SAPP_EVENTTYPE_FILESDROPPED`:
     - in the event `SAPP_EVENTTYPE_FILESDROPPED`:
         - the `sapp_event.modifier` field now contains the active modifier keys
         - the `sapp_event.modifier` field now contains the active modifier keys
           at the time of the file drop operations on the platforms macOS, Emscripten
           at the time of the file drop operations on the platforms macOS, Emscripten
@@ -17,6 +19,12 @@
 
 
     Many thanks to @castano for the initial PR (https://github.com/floooh/sokol/pull/830)!
     Many thanks to @castano for the initial PR (https://github.com/floooh/sokol/pull/830)!
 
 
+    - In sokol_imgui.h, the new io.AddMouseSourceEvent() function in Dear ImGui 1.89.5
+      is called to differentiate between mouse- and touch-events, this makes ui tabs
+      work with a single tap (previously a double-tap on the tab was needed). The code
+      won't break if the ImGui version is older (in this case the function simply isn't called)
+
+
 - **19-May-2023**: _**BREAKING CHANGES**_ in sokol_gfx.h: Render passes are now more 'harmonized'
 - **19-May-2023**: _**BREAKING CHANGES**_ in sokol_gfx.h: Render passes are now more 'harmonized'
   with Metal and WebGPU by exposing a 'store action', and making MSAA resolve attachments
   with Metal and WebGPU by exposing a 'store action', and making MSAA resolve attachments
   explicit. The changes in detail:
   explicit. The changes in detail: