• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

Suggestion SetDeviceWindow

Wingnut

Well-known member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
1,414
I suggest making SetDeviceWindow command even more flexible. I came to think of this because if you just use SetDeviceWindow with Window positon right afterwards it does not look too good. Making everything into one operation would be a good idea.

It would mean implementing optional parameters into SetDeviceWindow

SetDeviceWindow width,height, flags
would become
SetDeviceWindow width,height, flags[,xpos=centred,ypos=centred]

No parameters would behave like now, it would center the window.
 
Also it should preferably not rename the window to "CerberusGame" (or what you set #GLFW_WINDOW_TITLE to) everytime it is called.
The name will still blink if you set your title straight after using other command. This is just a problem of course if you want to have a dynamic title.
 
Last edited:
Lastly, using SetDeviceWindow forces mousepointer to middle everytime.
So basically SetDeviceWindow is resetting a lot of things it would be better if it didn't.
 
So basically SetDeviceWindow is resetting a lot of things it would be better if it didn't.
Of course it does, as it deletes and recreates the window. That is how GLFW, the Window framework CX utilizies, works.

Regarding the mouse pointer, there is a setting in GLFW for centering it, but it is surpose to be off by default.
I noticed it will center the pointer always when it is fullscreen and on Windows, but not in window mode.
Might be that this part is still buggy in GLFW. GLFW user where complaining about it for a few years now.

About the title, that is something I can do differently.
 
GLFW have had this problem with a centred mousepointer and also no access to a global mousepointer even, for a long time I think, it's solved but not merged into the main branch, if I understood it correctly.
 
Back
Top Bottom