• Show log

    Commit

  • Hash : 157c3f80
    Author : Sam Lantinga
    Date : 2021-05-21T09:45:08

    [SDL] Minimize number of system calls when handling WM_INPUT raw input messages.
    
    Details:
    Currently doing 4 system calls per WM_INPUT message, which can cause the thread handling the message loop to be swapped out several times:
    * GetProp - to get window data from the window handle
    * GetRawInputData - to retrieve the raw input data
    * 2 calls to GetMessageExtraInfo - to ignore synthetic mouse events generated for touchscreens
    
    In this change:
    * Replaced GetProp by iterating the list of windows maintained by SDL (with a fallback to GetProp). Note that this will affect all messages and not just WM_INPUT
    * only calling GetMessageExtraInfo if a touchscreen has been detected
    
    Fix for https://jira.valve.org/browse/CSGO-4855
    @saml
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w thodg_l www_kmx_io thodg
    Tags

  • README.md

  • Simple DirectMedia Layer (SDL) Version 2.0

    https://www.libsdl.org/

    Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve’s award winning catalog and many Humble Bundle games.

    More extensive documentation is available in the docs directory, starting with README.md

    Enjoy!

    Sam Lantinga (slouken@libsdl.org)