Skip to content

FOSE plugin for clipping the mouse cursor to the game window's bounds.

License

Notifications You must be signed in to change notification settings

dekart811/fo3_clipcursor

Repository files navigation

Fallout 3 Inactive Window Scroll Fix 🖱

This is a port of the Inactive Window Scroll Fix for Fallout New Vegas, made by luluco250, all credits go to them.

Everything below the line is their original README.md


Fixes the problematic behavior of mouse scrolling not being fully captured by the game, which results in scrolling other applications in other windows due to Windows 10's inactive window scroll feature.

This is more noticeable with multi-monitor setups, for example, when scrolling through a menu, you might notice your browser on another screen scrolls as well.

This is because the mouse cursor seems to not actually be restricted to the window. It's obvious why this was never a problem before Windows 10, but now it needs fixing. 😉

This uses the ClipCursor() function of the Win32 API to restrict the mouse to the game window's boundaries, only letting go when it loses focus (such as alt-tabbing).

This has also been tested with ReShade and thus should be compatible with other overlays as well. 🎮

How to Build

FOSE source code is not provided as per the license agreement, so to build this plugin you'll need to grab it here (download the latest version).

After that, copy src/common and src/fose to the folder before where this project is located (like src/fose_plugin_example). It should look like this:

📁...
└📁common
└📁fo3_clipcursor
 └...
 └📄fo3_clipcursor.sln
 └...
└📁fose

Unfortunately due to the dependency on the behavior of MSVC 9.0, this project needs to be built using Visual C++ 2008 (express or not).

I might look into upgrading it, but that'd require modifying FOSE files.

About

FOSE plugin for clipping the mouse cursor to the game window's bounds.

Resources

License

Stars

Watchers

Forks

Packages

No packages published