Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by JohnnyWasabi · Oct 06, 2016 at 08:22 PM · mouse input

Why is mouse cursor stuck when Xbox Live shell dialogues pop up?

When my game invokes the sign-in shell dialogue for Xbox Live (on Windows 10 Store platform), the mouse pointer (cursor) appears but does not move or accept clicks. I have to Alt-Tab (or press Windows Start button) to activate mouse input. It is as if my game is still eating the mouse input, or the popped-up window is not focused. What might I be doing to cause that? It occurs in both full screen and windowed mode.

I was previously using Cursor.lockState = CursorLockMode.Confined when in full screen mode, but I commented that out, and anyway it happens in windowed mode as well in which I was setting Cursor.lockState = CursorLockMode.None.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by JohnnyWasabi · Oct 07, 2016 at 07:42 AM

I should have also mentioned that I'm using a custom Default Cursor in the game. I just tried not using a custom cursor (just the OS cursor instead), and that solves the problem. With the custom cursor I am also unable to move the cursor off the game screen/window, in addition to getting a frozen cursor when the Xbox Live shell windows pop up.

So I think the answer is going to be to restore the OS cursor--using a call I found in another thread: Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto) )--just before invoking the pop-up windows in question, then return to my custom cursor when the game resumes control.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JohnnyWasabi · Oct 08, 2016 at 04:32 AM 0
Share

I gave up on trying to switch back and forth right around the invocations of the pop-up windows. The cursor seems to need some time to make the switch (or it doesn't work, cursor stays frozen), and didn't want to rely on uncertain ti$$anonymous$$g or introduce unnecessary lags before the pop-ups.

Ins$$anonymous$$d, my final solution was to not use custom cursor at all on the main menu screen, since that is the only location where the pop-ups occur. That works just fine. I still use a custom cursor during gameplay, I just switch back and forth when going to and from the main menu screen.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

RTS movement not working properly 1 Answer

Quick question about the precision of Mouse X and Y axes 1 Answer

Specific Items Being Clicked 1 Answer

Get input strength from mouse movement? 1 Answer

How to get mouse input as axis for custom editor? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges