YuriSizuku / OnscripterYuri

An enhancement ONScripter project porting to many platforms, especially web.
GNU General Public License v2.0
310 stars 18 forks source link

Adding a mouse cursor #33

Open christianhaitian opened 3 weeks ago

christianhaitian commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 1 day ago

@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.