Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it able to chase the cursor through the different monitors #12

Open
Lethme opened this issue Sep 8, 2023 · 6 comments
Open

Make it able to chase the cursor through the different monitors #12

Lethme opened this issue Sep 8, 2023 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@Lethme
Copy link

Lethme commented Sep 8, 2023

No description provided.

@crgimenes crgimenes added the help wanted Extra attention is needed label Sep 8, 2023
@ibah111
Copy link

ibah111 commented Sep 20, 2023

image

@ibah111
Copy link

ibah111 commented Sep 20, 2023

kinda stucks between them

@crgimenes
Copy link
Owner

Thanks for reporting.

As far as I understand the problem, it is necessary to implement a routine to deal with the mouse position on multiple monitors and the position and scale of these monitors. (the same thing goes for multiple screens.)

I believe that, the game engine I'm using (https://github.com/hajimehoshi/ebiten) provides some support for this. I need to investigate, but it's difficult to reproduce the problem because I don't have multiple monitors.

@ibah111
Copy link

ibah111 commented Sep 20, 2023

Thanks for reporting.

As far as I understand the problem, it is necessary to implement a routine to deal with the mouse position on multiple monitors and the position and scale of these monitors. (the same thing goes for multiple screens.)

I believe that, the game engine I'm using (https://github.com/hajimehoshi/ebiten) provides some support for this. I need to investigate, but it's difficult to reproduce the problem because I don't have multiple monitors.

Hello mate, here my question - today i ve changed patterns from white => to black kinda was redraw ur patterns to patterns of my cat, and here's the question: is there a way how i can change coursor from my default windows coursor to another (like insted of my original coursor would me mouse texture and it will looks like cat chasing mouse?) if u know so tell me how to do it please, or i u don't then can i ask u to provide me some docs where i can read smthing about golang.

myself as typescript dev i think i will spent lots of time trying to find code docs for my request

thanks a lot
have a good day

@crgimenes
Copy link
Owner

Thanks for reporting.
As far as I understand the problem, it is necessary to implement a routine to deal with the mouse position on multiple monitors and the position and scale of these monitors. (the same thing goes for multiple screens.)
I believe that, the game engine I'm using (https://github.com/hajimehoshi/ebiten) provides some support for this. I need to investigate, but it's difficult to reproduce the problem because I don't have multiple monitors.

Hello mate, here my question - today i ve changed patterns from white => to black kinda was redraw ur patterns to patterns of my cat, and here's the question: is there a way how i can change coursor from my default windows coursor to another (like insted of my original coursor would me mouse texture and it will looks like cat chasing mouse?) if u know so tell me how to do it please, or i u don't then can i ask u to provide me some docs where i can read smthing about golang.

myself as typescript dev i think i will spent lots of time trying to find code docs for my request

thanks a lot have a good day

It is possible, depending on the operating system. Unfortunately, the game engine I'm using doesn't support doing this directly.

Imagine the following: I'm not drawing the cat directly on the screen. I'm drawing the sprites in an invisible window and then moving the window around the screen. It would be very easy to change the mouse to my window, but it is more complicated for the system as a whole.

I will create a specific issue to study this.

@crgimenes
Copy link
Owner

In version v2.6.0 the Ebitengine added functions to handle multiple monitors, including AppendMonitors and SetMonitor. With this, making the cat run across multiple monitors should theoretically be possible. More investigation is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants