walbourn / directx-vs-templates

Direct3D Visual Studio Templates
https://walbourn.github.io/direct3d-game-visual-studio-templates-redux/
MIT License
412 stars 56 forks source link

Question - easy way to enable the mouse outside the directx window? #63

Closed cpyburn closed 2 years ago

cpyburn commented 2 years ago

Using your templates, the mouse is not visible outside the directx window. Is there an easy way to enable it?

cpyburn commented 2 years ago

OK I added winuser.h and used showcursor(true) and that worked but the cursor as no interaction outside the window, cant do anything with it.

walbourn commented 2 years ago

The default template does not do anything with mouse or mouse messages.

Are you using UWP or PC? DX11 or DX12?

cpyburn commented 2 years ago

PC and DX12, and you're right it doesn't do anything with the mouse. I made the mouse using input and drawing my own mouse with a sprite. But I was wondering how I could enable a mouse in this situation to go outside the console window and do other things?