1. 17 Jan, 2020 4 commits
    • Camilla Löwy's avatar
      Win32: Fix scancode when key message only had VK · e5353801
      Camilla Löwy authored
      Some synthetic key messages come with a scancode of zero, causing them
      to be translate to GLFW_KEY_UNKNOWN.  This fills in the missing scancode
      by translating the provided virtual key.
      
      Rather than further complicate a single-use function, its body is merged
      into the key message handler.
      
      Fixes #1623.
      
      (cherry picked from commit 789a2bcb3985a882944f3ae8dc6aa8aa22a23494)
      e5353801
    • Camilla Löwy's avatar
      Check scancode before use in glfwGetKeyName · ec286969
      Camilla Löwy authored
      (cherry picked from commit 5f1631cb0e6f3544e9d13e7deb60ff3473a8a3f3)
      ec286969
    • Camilla Löwy's avatar
      Win32: Use non-async key state for modifier hack · 0af3bf3b
      Camilla Löwy authored
      The synchronous key state seems to make more sense in context.
      
      (cherry picked from commit a491b0698cc520fb7e77d66e3d335310814cbb86)
      0af3bf3b
    • Camilla Löwy's avatar
      Win32: Fix no Super key release event after Win+V · 8552152f
      Camilla Löwy authored
      The Win+V hotkey brings up a clipboard history IME that consumes the key
      release.  This adds left and right Super to the modifier keys manually
      polled for undetected release during event processing.
      
      Fixes #1622.
      
      (cherry picked from commit 562c17d131bd99d92f1166e2a8a42d7af023d122)
      8552152f
  2. 14 Nov, 2019 1 commit
    • Camilla Löwy's avatar
      Win32: Change transparent framebuffer key color · c5a870eb
      Camilla Löwy authored
      This is a temporary fix while we determine if the color key workaround
      should be removed completely.  See issue thread for discussion.
      
      Related to #1512.
      
      (cherry picked from commit c88ee1c9d3e018c199eaf0b0f5ccc3874ac1de09)
      c5a870eb
  3. 04 Oct, 2019 1 commit
    • Camilla Löwy's avatar
      Win32: Cleanup keyboard input flag parsing · 087110aa
      Camilla Löwy authored
      This replaces some magic numbers with the corresponding winuser.h
      provided macros and unifies how the MSB from Get*KeyState is tested.
      
      (cherry picked from commit 3d2540c373c53a8ddfba806fb83cdb9e39a61467)
      087110aa
  4. 23 Sep, 2019 3 commits
  5. 16 Jul, 2019 2 commits
    • Leon Linhart's avatar
      Win32: Fix cursor enter/position event order · 9fc035a5
      Leon Linhart authored
      This fixes the cursor enter event being emitted after the first cursor
      position event on Windows.
      
      Closes #1490.
      
      (cherry picked from commit 4f0b8b0ddaada126cd257f2e5b06450e932ad5f6)
      9fc035a5
    • A. Tombs's avatar
      Win32: Cleanup pointer test in win32_window.c · 8542f8dd
      A. Tombs authored
      MSVC 2019 complains that the code at line 1744
      (`GetMonitorInfo(window->monitor->win32.handle, &mi);`) can potentially
      dereference a null pointer. The compiler is wrong in this case (it has
      not spotted that `monitor` and `window->monitor` must be equal), but
      I think it makes sense for our non-NULL test to be on the variable we
      actually use rather than the one it was set from.
      
      Related to #1491.
      
      (cherry picked from commit 1d6215726807e73fd21da9a4a09c28aab3111879)
      8542f8dd
  6. 27 May, 2019 3 commits
  7. 15 Apr, 2019 2 commits
  8. 22 Feb, 2019 2 commits
    • Camilla Löwy's avatar
      Rename raw input to raw mouse motion, cleanup · 1155c830
      Camilla Löwy authored
      This renames 'raw input' to 'raw mouse motion' as there are other kinds
      of raw input.  The update path is restructured to avoid reinitializing
      all of disabled cursor mode.  Modification of shared state is moved out
      into shared code.  Raw mouse motion is disabled by default for
      compatibility.
      
      Related to #1401.
      1155c830
    • Nathan Poirier's avatar
      Add GLFW_RAW_INPUT and glfwRawInputSupported · 9e29f556
      Nathan Poirier authored
      This adds runtime per-window control of whether accelerated or raw mouse
      motion is provided when the cursor is disabled.
      
      Fixes #1400.
      Closes #1401.
      9e29f556
  9. 13 Feb, 2019 1 commit
  10. 11 Feb, 2019 1 commit
  11. 25 Jan, 2019 1 commit
    • Camilla Löwy's avatar
      Cleanup · d5ab3e91
      Camilla Löwy authored
      Replace client area with content area.
      d5ab3e91
  12. 22 Jan, 2019 1 commit
  13. 26 Dec, 2018 2 commits
    • Camilla Löwy's avatar
      Cleanup · 1635fe28
      Camilla Löwy authored
      Put the non-client painting related message cases with the client ones
      so that they can be happy together.
      
      Related to #1383.
      1635fe28
    • Aaron Loucks's avatar
      Win32: Disable non-client painting if undecorated · 9ac9d7b8
      Aaron Loucks authored
      Fixes an issue where a small title bar and window caption
      buttons were being painted after restoring a minimized
      undecorated window.
      
      Closes #1383.
      9ac9d7b8
  14. 22 Oct, 2018 1 commit
  15. 03 Sep, 2018 2 commits
    • Camilla Löwy's avatar
      Add GLFW_SCALE_TO_MONITOR · 089ea9af
      Camilla Löwy authored
      This adds the GLFW_SCALE_TO_MONITOR window hint for automatically
      resizing the content area of a window to the requested size times the
      monitor content scale each time it is placed on a new monitor.  This
      only applies to windowed mode windows and includes the initial placement
      at window creation.
      
      This hint only has an effect on platforms where screen coordinates and
      pixels always map 1:1 such as Windows and X11.  Platforms like macOS
      instead change the resolution of the framebuffer independently of the
      window size.
      
      Related to #676.
      Related to #1115.
      089ea9af
    • Camilla Löwy's avatar
      Win32: Add support for Per-Monitor V2 awareness · 52944395
      Camilla Löwy authored
      This adds basic support for the Per-Monitor V2 level of DPI awareness
      in Windows 10, which allows for automatic DPI scaling of window
      decorations.
      
      This commit does not include resizing the window content area to match
      the new window content scale.
      
      Related to #1115.
      Fixes #1294.
      52944395
  16. 24 Aug, 2018 2 commits
  17. 02 Aug, 2018 1 commit
    • Camilla Löwy's avatar
      Win32: Disable mouse trails for full screen · f82a8f09
      Camilla Löwy authored
      When mouse trails are enabled, the cursor becomes invisible when the
      OpenGL ICD detects a full screen window and switches to page flipping.
      
      Mouse trails are now disabled as long as any full screen windows are
      visible.
      
      Fixes #1263.
      f82a8f09
  18. 25 Apr, 2018 1 commit
  19. 07 Feb, 2018 3 commits
  20. 09 Jan, 2018 3 commits
  21. 06 Dec, 2017 1 commit
    • Camilla Löwy's avatar
      Add lock key modifier bits input mode · 0e8c4ea7
      Camilla Löwy authored
      This adds the GLFW_MOD_CAPS_LOCK and GLFW_MOD_NUM_LOCK modifier bits.
      Set the GLFW_LOCK_KEY_MODS input mode to enable these for all callbacks
      that receive modifier bits.
      
      Fixes #946.
      0e8c4ea7
  22. 28 Nov, 2017 1 commit
  23. 16 Nov, 2017 1 commit