-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direct Input #216
Comments
TL;DR Use DirectInput on Windows and Raw Input on Linux because there is no mouse acceleration The three input modes are:
Engine/WinAPI method queries the on-screen mouse cursor position. This means that mouse movement is influenced by Windows settings (like sensitivity, mouse acceleration). Direct Input and Raw Input both read raw data directly from the mouse, before Windows processes it. Direct Input uses DirectX API, while Raw Input uses the SDL2 library bundled with the engine (like Raw Input checkbox in the mouse settings). Windows: Direct Input is the preferred method on Windows. Before HL25 update, the game used an old version of SDL2 that had some bugs related to mouse input. Also, Direct Input was added to BHL before the 2013 SteamPipe engine update, that added SDL2 and Raw Input. Linux: There is no WinAPI or DirectX so Raw Input is the only supported method. |
thank you for your answer. i have another question. Via directinput what should be m_customaccel settings? i experienced that even m_customaccel set to 0, when you change m_customaccel exponent and m_customaccel scale values sensitivity or maybe acceleretaion changes. What customaccel settings commonly used and what should they set in order to 1:1 raw no accelereation? |
@gohlrhi, when direct input is enabled, accel seeings don't matter anymore. |
I doubt that because when directinput is enabled evet m_customaccel is set to 0 if i change m_customaccel_exponent and m_customaccel_scale values sensitivity and feeling change clearly. |
I don't understand what are you talking about 🤷♂️ |
@Safety1st Input method only affects how mouse is read. @gohlrhi When Btw, the formula is |
thanks for your answer but i am sure it feels different by different values of scale and exponent with m_customaccel is set to 0. i have found many other guy complain about it on net so may be there is a bug about it idk. |
what does direct input do exactly and why is it recommended? Thus what is the difference between engine, raw input and direct input?
The text was updated successfully, but these errors were encountered: