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

Adding a mouse cursor #33

Open
christianhaitian opened this issue Nov 2, 2024 · 4 comments
Open

Adding a mouse cursor #33

christianhaitian opened this issue Nov 2, 2024 · 4 comments

Comments

@christianhaitian
Copy link

Greetings,

Any plans to include a mouse cursor within the standalone build of this emulator? I'd like to use this standalone in a linux environment that does not have a window manager.

Thank you,
Christian

@YuriSizuku
Copy link
Owner

I wonder why do you need a mouse cursor, because this gui application might not work without window manger.
If you want to use the custome cursor, it might be already implemented. If you put these files in the game directory, the custom cursor will appear.

 *** can't find file [uoncur.bmp] ***
 *** can't find file [uoffcur.bmp] ***
 *** can't find file [doncur.bmp] ***
 *** can't find file [doffcur.bmp] ***
 *** can't find file [cursor0.bmp] ***
 *** can't find file [cursor1.bmp] ***

@christianhaitian
Copy link
Author

It actually loads and works with out a window manager on aarch64 and mouse is present but you just can't see a cursor until it's on a clickable target. I did try cursor0.bmp and cursor1.bmp and neither of those showed while playing 40 Days and 40 Mights of Rain and A Happy Valentine. Those were the only 2 files the emulator said that were missing and when I provided them, it didn't complain anymore but still didn't show a cursor. Any other suggestions?

@iyzsong
Copy link

iyzsong commented Nov 26, 2024

@christianhaitian Hello, I think those cursor*.bmp is not for mouse, but for text prompt. ONScripter use SDL's video driver to draw a mouse cursor, in fact it does show a mouse cursor with KMSDRM video driver (launched directly from linux tty) in my end (ArchLinux x86_64). So I guess the SDL video driver in your environment maybe buggy.

In my case with KMSDRM, I have to plug in a USB mouse, the laptop touchpad is not working.

@christianhaitian
Copy link
Author

Hmm....I thought it might be because I had the mouse cursor disabled in SDL but even with the mouse cursor enabled, I get no cursor on the screen on my end. I am using a mouse emulator. I'll trying connecting a usb mouse and see if I get a different result there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants