- Newest
- Most votes
- Most comments
AzFramework::InputSystemCursorRequestBus::Event(AzFramework::InputDeviceMouse::Id, &AzFramework::InputSystemCursorRequests::SetSystemCursorState, AzFramework::SystemCursorState::UnconstrainedAndVisible);
In C++ you can allow the mouse to leave the window by using the above code. Give that a shot and let me know how it turns out :D
You can hit the console key " ` " to pull up the console and regain your mouse to move outside the window.
Otherwise you would need to run the various console commands to change the window size. You can also use DumpCommandsVars to get all possible console commands.
r_width = 1920
r_height = 1080
r_fullscreen = 1
That does not answer my question though. I want to do that for a clean release build, where i can resize the window just as every normal application can.. I mean with c++ (or lua, did not find anything for flowgraph) that you can make the window responsive <.<
Also, D3DSystems.cpp is explicitly disabling window resizing:
m_dwWindowStyle &= ~WS_THICKFRAME; //< remove this line to allow resizing
After enabling WS_THICKFRAME, you'll need to capture the WM_SIZING event to update rendering if you'd like the aspect ratio to update with the screen width and height. Let me know if you need any help with that too : )
@SilvanHau, for window resizing using the mouse, it turns out that CSystem forwards the resize as a ESYSTEM_EVENT_RESIZE... DriverD3D intercepts it and does nothing. I've added a new feature request for the Lumberyard team; I'll reply to this post once any updates are added :)
I'm going to do some research regarding allowing the mouse cursor to leave the window, stay tuned!
This post is closed: Adding new answers, comments, and votes is disabled.
Relevant content
- asked 2 months ago
- asked 4 years ago
- asked 7 months ago
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 7 months ago