-
Notifications
You must be signed in to change notification settings - Fork 362
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
Mouse sensitivity on title/pause screen changes with resolution #526
Comments
I'm on Linux with Gnome, so no icons problem, but the disproportion of sensitivity in menu and the game is probably the same here. I use 1440p and the menu has much lower sensitivity than the game, nothing major though. But definitely different behaviour compared to vanilla Doom3.exe (in Wine at least). |
dhewm3 does not move anything on your desktop, this must be a bug in Windows or your graphics driver or something, probably related to dhewm3 changing the display resolution (if you're using fullscreen) Not sure what's happening with the cursor speed, it's supposed to be the same as the desktop one, but it's possible that something goes wrong due to HiDPI, where mouse coordinates, window sizes and actual pixels on the screen don't always use the same coordinate system (though I thought that on Windows it does use the same coordinate system, as dhewm3 tells Windows that it handled DPI scaling itself and that it should get a window of exactly the size in pixels that have been requested, so mouse coordinates, window size and opengl framebuffer should all use the same resolution). |
Ah right, regarding cursor speed with DSR: I think that's just the normal cursor speed you'd also see on the Windows desktop when running that at DSR resolution (is that possible?). Your system mouse cursor speed is probably configured to something like "1cm of mouse movement moves cursor by 20 pixels" - or whatever speed feels good for the mousecursor at 1440p. On Linux (and probably also macOS and other systems) with HiDPI the problem is different, as I wrote it must have something to do with DPI scaling turning drawn pixels, window size and mouse coordinates into different units. Usually, when running dhewm3 in windowed mode and (while in the main menu) moving the cursor inside and out of the window, the Doom3 menu cursor and system cursor should switch seamlessly, i.e. if you move the mouse out of the window the system cursor will appear at the closest position outside the window, and vice versa - at least for the upper and lower window edges, left/right you'll usually have those black bars from scaling the menu to 4:3, where no cursor is rendered (or it's clamped into the non-black area). Original Doom3 behaved differently: Doom3 (and dhewm3) menu UIs always use coordinates based on a 640x480 UI size, so the internal mouse coordinates in menus are always between (0,0) and (639,479). UPDATE: Oh, and another thing: The perceived mousespeed in the menu and in the game (esp in the PDA) differs, because the PDA is a real ugly hack. Technically it isn't implemented as a regular fullscreen menu that gets input events through the mechanism I fixed the mouse speed in, but it's a weapon with a UI that happens to be rendered over the whole screen, and all that is done in the gamecode (while the normal UI code is in the engine). |
Hm, seems rather complicated ;) I don't think that it's such a problem though. But would it be possible then to make the mouse wheel to actually really scroll the PDA logs? Clicking on the small bullet to move the text is a bit annoying. But nothing major of course. :D |
Funny thing: It might be more feasible to make the mouse in the PDA not too fast (I looked at it again and have an idea..) than making the mouse wheel scroll - because the information what key (or button or wheel or whatever) triggered an action is not available to the PDA :-/ I think best I could (maybe!) do is make next/previous weapon scroll, whatever it's bound to.. but then there are people who use scroll up for next weapon and others (like me) use scroll down for next weapon, so for half the people (that have the mouse wheel bound to next/prev weapon at all) scrolling with the mouse wheel would scroll in the wrong direction.. (and yes, it annoys me as well that I can't scroll with the mousewheel in the PDA, the only place in the whole frigging game where scrolling is really desirable - the main menu barely uses any scrolling (maybe the mods menu if you have shittons of mods installed, or the server list in the multiplayer menu, if there were more than 3 dhewm3 servers online..) |
Hehe! Alright, no problem. I also use scroll down for next weapon, I guess most people do, but who knows. Well, that lack of a need to use the scroll wheel in menu is actually something I sort of appreciate these days. When I was those 26-27, I could spend a lot of time going through a crapload of Quake mods, but for Doom3, really only few are good enough in terms of design, flow and general polish. So no problem ;) |
Hmm though I guess I could add a CVar that configures if next or prev weapon scrolls down.. |
I implemented HighDPI support in #576, @inf78 can you test if this makes the cursor speed in the menu feel more normal in gnome? |
Of course. But very cool menu! For a while I thought Force Engine was silently executed. :D |
I'm playing on Windows 11, and the sensitivity for moving the cursor in the title/pause menu gets too high and oversensitive at low resolutions (ie. 480), and too low and sluggish at higher ones (1440p, 4K). Mouse movement seems to be unaffected and fine in the game itself.
Also, using DSR to play at 4K and downsample to my 1440p monitor causes all the icons in the rightmost column of my desktop to get moved left one column. If I put them back, running dhewm3 displaces them again with every launch.
The text was updated successfully, but these errors were encountered: