Announcement

Collapse
No announcement yet.

Mouse not locking to UT window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mouse not locking to UT window

    Summary: The Unreal Tournament window does not do a good job at keeping the mouse within its borders

    Version: UnrealTournament-Client-XAN-2566237-Linux

    Description: The Unreal Tournament window does not do a good job at locking the mouse to the window. When in game, my mouse sometimes moves off onto my second monitor when preforming flickshots or other fast and jerky movements. The mouse still does lock to the screen, however loosely. The game can be played when excersizing caution with mouse movements.

    Steps to Repro:
    Start the game
    set it to windowed mode or fullscreen with a second monitor
    enter a match
    flick the mouse

    RESULT: The mouse is no longer in the window.

    More info: I am using nVidia drivers v352.09. I tried three different window managers: fluxbox, xfwm4, and awesome, all of which have the issue. Comment below if this issue is specific to me and how I might go about fixing it.
    Also, the audio is still broken in this build, see my post here: https://forums.unrealtournament.com/...-right-channel
    Last edited by Hypersurface; 06-08-2015, 04:21 PM. Reason: Completed the post. Whoops!

    #2
    The mouse issue is not confined to Linux, happens in Win 8.1 for me too but for whatever reason this latest build I haven't noticed it. I have changed my sensitivity settings (lowered significantly), that may have something to do with it if there is a threshold that determines when it will leave the window.

    This is a single monitor setup btw.
    Last edited by HenrikRyosa; 06-09-2015, 10:49 AM.

    UT4 modding discussion: irc.globalgamers.net #UTModders
    Contrib Digest | UT2341 - Henrik's UT4 Dev Blog | Twitter

    Comment


      #3
      A while back when I was testing things out in the code base on Windows 7, I thought I noticed that the slate widget framework was doing some things repeatedly like capturing / releasing the mouse, clipping the mouse position, setting the cursor and registering raw input devices. I think this happened as often as anytime you clicked the mouse. (Going to the menus was another transition point.)

      Some settings were simply redundant calls into windows but others were unset and sets. All of this could cause a performance issue for one reason or another.

      I tried turning off as many of those things as possible (with minimal changes) and I thought things improved a bit.

      I only have one monitor and I normally use fullscreen when not debugging so fewer issues were possible with me.

      Even though I have a Win 7 x64 with 8GB, debugging can be a bit slow and there were many potential issues I was looking for, so, this is a heads up on the potential for something strange happening in that area.

      The OP issue could be related to something happening after a release that causes windows to think about stuff on the other monitor.
      ----

      If I remove some of the suppressors:
      ....
      [2015.06.09-07.57.14:850][154]LogWorld: Bringing World /Game/RestrictedAssets/Maps/WIP/DM-Spacer.DM-Spacer up for play (max tick rate 120) at 2015.06.09-00.57.14
      [2015.06.09-07.57.14:850][154]UT: ===============
      [2015.06.09-07.57.14:850][154]UT: Init Game Option: ?game=/Script/UnrealTournament.UTDMGameMode?Hat=?Eyewear=?Character=?HatVar=0?EyewearVar=0?Name=Player?VersionCheck=1?Taunt=/Game/RestrictedAssets/Blueprints/Taunts/Taunt_PelvicThrust.Taunt_PelvicThrust_C?Rank=1
      [2015.06.09-07.57.14:850][154]UT: Password: 0 NONE
      [2015.06.09-07.57.14:851][154]UT: LobbyInstanceID: 0
      [2015.06.09-07.57.14:851][154]UT: ==================
      [2015.06.09-07.57.14:896][154]LogWorld: Bringing up level for play took: 0.257465
      [2015.06.09-07.57.15:735][154]UT:Warning: Failed to add Health_Small_10 to path network: no nearby navigable area was found
      [2015.06.09-07.57.15:735][154]UT:Warning: Failed to add Health_Small_11 to path network: no nearby navigable area was found
      [2015.06.09-07.57.15:735][154]UT:Warning: Failed to add Health_Small_241 to path network: no nearby navigable area was found
      [2015.06.09-07.57.15:735][154]UT:Warning: Failed to add Health_Small_301 to path network: no nearby navigable area was found
      [2015.06.09-07.57.15:735][154]UT:Warning: Failed to add Health_Small_7 to path network: no nearby navigable area was found
      [2015.06.09-07.57.15:735][154]UT:Warning: Failed to add Health_Small_9 to path network: no nearby navigable area was found
      [2015.06.09-07.57.22:334][507]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.22:334][507]LogWindowsDesktop: RegisterRawInputDevices Enable 1 Result = 1
      [2015.06.09-07.57.22:468][515]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.57.23:701][579]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.23:819][586]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.57.29:723][936]UT: BEGIN GAME GameType: UTDMGameMode_0
      [2015.06.09-07.57.29:723][936]UT: Difficulty: 3.000000 GoalScore: 30 TimeLimit (sec): 900
      [2015.06.09-07.57.32:227][997]LogCharacterMovement:Warning: GetSimulationTimeStep() - Max iterations 8 hit while remaining time 0.069687 > MaxSimulationTimeStep (0.050) for 'DefaultCharacter_C_2'
      [2015.06.09-07.57.37:997][146]LogD3D11RHI: Timed out while waiting for GPU to catch up. (0.5 s)
      [2015.06.09-07.57.38:831][149]LogD3D11RHI: Timed out while waiting for GPU to catch up. (0.5 s)
      [2015.06.09-07.57.39:331][149]LogD3D11RHI: Timed out while waiting for GPU to catch up. (0.5 s)
      [2015.06.09-07.57.44:384][358]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.44:640][359]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.57.47:486][448]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.48:022][451]LogD3D11RHI: Timed out while waiting for GPU to catch up. (0.5 s)
      [2015.06.09-07.57.49:388][513]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.57.50:605][586]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.52:231][618]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.57.52:407][629]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.52:574][639]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.57.52:824][654]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.52:874][657]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.57.53:507][695]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.53:608][701]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.57.53:741][709]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.53:858][716]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.57.53:986][723]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.57.54:108][731]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.58.02:351][ 21]LogCharacterMovement:Warning: GetSimulationTimeStep() - Max iterations 8 hit while remaining time 0.087812 > MaxSimulationTimeStep (0.050) for 'DefaultCharacter_C_2'
      [2015.06.09-07.58.04:050][ 94]LogD3D11RHI: Timed out while waiting for GPU to catch up. (0.5 s)
      [2015.06.09-07.58.11:905][547]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.58.11:989][552]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.58.12:356][574]LogWindowsDesktop: SetCapture hwnd 190288
      [2015.06.09-07.58.12:457][580]LogWindowsDesktop: ReleaseCapture
      [2015.06.09-07.58.12:723][596]LogWindowsDesktop: SetCapture hwnd 190288
      ...

      ---
      related to

      Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp :
      FSlateApplication::Tick (calls QueryCursor), FSlateApplication::ProcessReply, SlateApplication::ProcessMouseButtonDownEvent, FSlateApplication::ProcessMouseButtonUpEvent

      Engine\Source\Runtime\Engine\Private\Slate\SceneViewport.cpp : FSceneViewport::OnMouseButtonDown

      Engine\Source\Runtime\Core\Private\Windows\WindowsApplication.cpp :
      WindowsApplication::SetCapture, FWindowsApplication::SetHighPrecisionMouseMode

      Engine\Source\Runtime\Core\Private\Windows\WindowsCursor.cpp :
      FWindowsCursor::SetType, FWindowsCursor::Show, FWindowsCursor::Lock


      Last edited by NGC; 06-09-2015, 05:00 AM.
      Sombrero Galaxy [NGC 4594] http://en.wikipedia.org/wiki/Sombrero_Galaxy

      Comment


        #4
        When I play the game on windows, the mouse is just fine for me. I use a pretty low sensitivity (800 cpi with ~1.3 in game, 120 fov). Also, this has been an issue for me for the past few linux builds. The mouse has issues locking to the window when in windowed mode, as well. Thanks for the info, guys!

        Comment

        Working...
        X