Cursor Is Not Visible

0 views
Skip to first unread message

Francesca Cruiz

unread,
Aug 3, 2024, 5:12:18 PM8/3/24
to rafpeguaza

But started in Unity 2020, and in all versions since then, this code no longer works as-is. Instead, you first need to click somewhere into the Game view to get the mouse cursor to go away. Every single time I enter play mode, I need to click the Game view.

Note that static constructors in Unity are called in seemingly random fashion (I guess each recompilation does a call). Better use [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]

Keep in mind that folks that post on the forum like me do it because we want to help but it is not our job to do so and we cannot spend significant amount of time dealing with stuff reported here. We have dedicated team that looks at bug reports and tries to reproduce them all day long: but they only look at stuff that comes through the bug reporter (rather than forums).

In editor, I can get the cursor visibility to work properly in most cases if I move it into the game view window immediately after hitting the play button.
In builds, however, cursor visibility seems to be broken in most cases (i.e. always visible) - especially when the game runs in windowed mode.

Just updated to the latest stable version 1.14.3 and since then I've had the curser disappear when switching specifically from my macbook (client) to my work pc (server). I can make the cursor reappear on the work pc after I continue to drag the curser over the "dead space" between the screens, but it's as if synergy thinks my macbook display is larger than it is, and there's an invisible gap that I have to drag the cursor through each time. What's also weird is I don't see this happen with my other personal PC. The cursor immediately switches to the other screen (as configured in my settings). Anyone have tips or a solution to this? Doesn't exactly reduce functionality but definitely is annoying when I lose my cursor between screens.

I just began experiencing this issue yesterday, as well, after attempting to create a new Synergy 1.14.3 setup using an Apple Silicon iMac as a server, to a Windows 11 machine as the client. It's maddening. Your description is exactly how I perceived it... as if the cursor was traveling over some "blank space" between the server and the client, with the "cursor may not be visible" message appearing in the log, and when the cursor finally appears on the client, it seems to be somewhere around the middle of the screen. FWIW, I have the iMac's Retina screen set to be scaled to an apparent resolution of 1280x1024, and the client's monitor is also 1280x1024 (native resolution).

This happens regardless of whether or not the cursor is set to be visible using the cursor visible property, meaning that, even if you try to force the cursor to appear, it will always remain hidden when locked.

I have an experiment where subjects respond with the mouse only at the end of each trial. I have a separate routine for this response period, which includes a mouse event. The problem is, the mouse cursor is displayed throughout the entire trial, and I would like it to only display at the start of the last routine.

But you will likely find that using a code component within Builder allows you to achieve 99% of what you might need to do with custom code, and actually stops a lot of errors by automatically inserting the code at the right place. i.e. you get to have your cake and eat it, by using custom code but remaining within the Builder environment.

And yes, that makes perfect sense about the Coder vs. Builder. I have been using the code components, but ran into some issues with not knowing where the code is executed relative to the drawing of the stimuli, etc. I guess the solution is to occasionally peek at the Coder view and figure out through trial-and-error.

Yes, start with the API. No one will ever complain if you do your homework there first and then follow-up with unresolved questions here on the forum
In this case, check out the page for the Window class:

Hi,
I have a similar problem but when I tried this recommendation, it did not work in my case.
I have the rating component in the same routine and that the rating is done as the last activity in the routine. I still see the mouse cursor right from the beginning of the experiment till the end. Please help me to make the mouse cursor visible only during the rating period. I have included the screenshot.

Did you ever find a solution? I am having this exact problem at the moment and cannot get the mouse to disappear during video routines at all. Unfortunately as it is a visual perception experiment this is actually the only routine where I NEED the cursor to be gone!

The tip of the white arrow cursor will be located at the top right corner of the screen and the body of the arrow will not be visible because of its shape (the body of the arrow is below and to the right of its tip). The bottom left or bottom right corners of the screen would work just as well. If you specify coordinates that are outside the screen area (e.g. (2,2) or (100,100)), I think the cursor ends up in the same corner (e.g. at (1,1)).

I added this code to the Begin Routine tab and the Each Frame tab of the code component. Adding it to the Each Frame tab ensures that the mouse cursor is returned to the required position whenever the user attempts to move it. The cursor will briefly appear on the screen when the user moves the mouse to bring it on-screen, but will quickly move back off-screen. I added a Mouse component and a code component to each routine in which I wanted to hide the mouse cursor.

I installed the Visual Studio Color Theme Editor (which enables theming of the rest of the UI, as opposed to just the editor) in hopes that it would do this automatically if I used one of its dark themes, but no such luck.

I tried using different mouse pointers in Control Panel, but even though the cursor changed in some cases (for instance, if I picked one of the "very large" schemes), it was still black and so nearly invisible.

Based on upvotes, it appears this is still a problem with Visual Studio and Windows 10 in 2024 (been updating this every year since 2016...).Working off of szalski's and T. J. Crowder's solution, it can be changed in Windows 10:

Thank you for your suggestion. The only section within the O/S which has anything pertaining to cursor size is the section which enables me to alter the size, and appearance, of the mouse cursor, (the pointy thing you move around your screen), however I am alluding to the vertical bar in Writer which shows where the next letter will appear when I type.

Further to my comment above,
I have installed Abiword and have a small play with it, yes the typing cursor is approximately twice the width of the typing cursor in LibreOffice. However, being a lightweight word processor it lacks a lot of what I would determine to be the important features of LibreOffice. Otherwise it might have been a contender.

Looks as though I am stuck with a almost invisible typing cursor, until such a time as the developers of this fine product deem the typing cursor as being worthy of their attention, (probably when their eyesight starts to get a little less sharp than it currently is).

@OldBiker, as you are using Mint, i.e., a gtk3 based desktop, the accepted answer in this question will help you to make the cursor thicker: LO writer on Linux: change appearance of typing cursor (i.e. not mouse cursor)

Me too; however, macos - Change the width and color of Mac OS X text caret (cursor) - Super User (the answer from more than 10 years ago) seems to suggest that almighty Apple architects believe that changing defaults centrally is a waste of their energy.

The solution by @MarkieMark and pointed to above by @Vanadium works very nicely with Ubuntu 22.04.2 and LibreOffice 7.3.7.2. Thanks to all involved. But, Yes, a solution within LibreOffice would be very helpful.

No its the regular cursor. When I hold let and right click the cursor is still there and it moves along the screen in the direction I'm moving the camera. It just suddenly started happening in the middle of the Lunar Race. The cursor never disappears now.

This issue first appeared on my friends account about 2 weeks ago. Today it happened to my game too. Having your cursor visibly go where you pull with RMB clicked and teleport back across the screen when you let go of the RMB takes all the fun out of the game... Alt+Tab, Windows key, switching maps doesn't fix it. However restarting the game did. Also, when I closed the game and tried to launch it the first time it crashed the launcher. Then started up normally.

This bug has shown me what happens to the mouse when its invisible, I can never unsee it. Because of this it makes sense why sometimes my minimap zooms in and out while wheel scrolling and moving around with a mouse button held down.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages