Right Click Camera Control and Alt Tab
My goal is to let player control the camera when right click is held down (similar to World of Warcraft) and when right click is released, mouse cursor will show. Everything works correctly until I alt tab, after that I can only move my camera abit because my mouse hits the edge of the viewport. Any ideas how to make refocus viewport and capture mouse properly after alt tabbing?
ThirdPersonCharacter has modified blueprint nodes categorized with blue highlight.
Download Project: https://drive.google.com/open?id=0BxA-6ZVRJ-z1VWI5R3B0VXlobGs
On your right mouse down you need to "set input mode game only" and the part you were missing was that the target MUST be the player controller.
Note you must also "set input mode game and ui" after you release the mouse or you wont be able to click on things once again after you get your mouse back.
Below is the screen shot:
answered Apr 24 '17 at 08:40 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here