Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Native mouselock for GameMaker

Constrains the mouse cursor to a rectangle at system level · By YellowAfterlife

Not working when creating executable for Steam

A topic by sajjjjad created 16 days ago Views: 36 Replies: 4
Viewing posts 1 to 5

Thank you for providing such an amazing extension. I’m encountering an issue where the extension stops working when I add the Steamworks plugin and create an executable. I’m using GM 2024.11.0.179, SteamSDK 1.60, and testing on Windows.

Could you kindly take a look and let me know if there’s a solution to this?

Thank you!

Developer

It is rather unlikely that Steamworks is at fault (unless the DLL file gets lost during packaging/upload), we are using this same DLL in Nuclear Throne betas (on the latest IDE + runtime versions).

Thanks for the response. Do you have any suggestions on how I can debug this issue? You mentioned that the DLL might be getting lost during packaging—how can I check if the DLL is being included? Also, could you please share the GM and SDK versions you’re using? I might need to migrate to those versions.

Developer

Check that the game directory contains display_mouse_lock_x64.dll;

display_mouse_lock returns whether it could lock the cursor - for example, you cannot lock the cursor when the game window does not have focus (so you might do this in a Step event).

The latest NT build was made with IDE v2024.11.0.179 Runtime v2024.11.0.227 and Steamworks 1.60, so probably the same as yours.

Hi again
The game directory contains the dll. 
Finally it is resolved by using Steamworks v 1.55
Thanks