Skip to main content

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

issue with winwin_mouse_check_button

A topic by Pinguis created 13 days ago Views: 52 Replies: 4
Viewing posts 1 to 5

Hello first of all thank you for making this extension its really cool.

context, I programmed a function that allows me to drag a window without grabbing the top border part, I did this because I have windows without that part and I wanted to make them dragable. 


The issue that I found is that while dragging, if the window is under a nongame window and the mouse moves from that window to ontop of that nongame window without leaving the window it still registers the mouse as being pressed on that window even if theres no input.

Developer(+1)

Uploaded a fix - apparently you have to call SetCapture/ReleaseCapture for this to work correctly!

it works, thank you for the quick response!

hateeee to do this to you but I just found out this can also be triggered from using the screenshot shortcut (windows + s) I tried mitigating this by running:

if keyboard_check_direct(91) && keyboard_check_direct(ord("S")) {

    winwin_mouse_clear(window, mb_left)    

}

Which stops it from happening but also prevents the screenshot shortcut from working
Developer

I think you’d be better off checking that the window has lost focus, but I’m not seeing anything about this in documentation so I’m not sure what you’re supposed to do with this.