E-Maculation
https://www.emaculation.com/forum/

Mouse & Shared folder
https://www.emaculation.com/forum/viewtopic.php?f=34&t=9381
Page 1 of 2

Author:  Ringworld [ Thu Jun 29, 2017 2:45 pm ]
Post subject:  Mouse & Shared folder

I'm a neophyte, I installed Qemu on Mac with Sierra 10.12.5, with some attempts to get it running, I have to solve two problems: the mouse runs slowly in Qemu and I do not know how to create a shared folder from Qemu and the host.
There is a solution to these problems. Thank you.

Author:  Cat_7 [ Thu Jun 29, 2017 3:41 pm ]
Post subject:  Re: Mouse & Shared folder

Hi,

There is no working shared folder functionality available right now.
Which Mac OS are you emulating? Have you checked the mouse speed settings in the guest OS?

Best,
Cat_7

Author:  Ringworld [ Thu Jun 29, 2017 4:49 pm ]
Post subject:  Re: Mouse & Shared folder

Hi,
I emulate MacOs 9.2.1, about mouse tomorrow will control the settings.
I'm sorry that can not have a direct communication between Sierra and OS 9.2. Thank you.

Author:  24bit [ Thu Jun 29, 2017 7:05 pm ]
Post subject:  Re: Mouse & Shared folder

I´m using SheepShaver to write onto the Qemu raw image.
Not that elegant but working.

Author:  Ronald P. Regensburg [ Thu Jun 29, 2017 7:46 pm ]
Post subject:  Re: Mouse & Shared folder

If the QEMU HD is formatted HFS+, you can simply mount the image file in the OSX/macOS host and copy files to it or from it. To prevent possible file system corruption, be careful not to have the volume mounted in the host OS while QEMU is running.

Author:  adespoton [ Thu Jun 29, 2017 8:07 pm ]
Post subject:  Re: Mouse & Shared folder

Because you can mount/eject images on the fly in QEMU, you can also create a "transfer" image that you can mount on either the host or the guest. That way, you can leave QEMU running, and treat it as if you're taking a USB stick out of one machine and inserting it in the other to transfer files.

Author:  Ringworld [ Fri Jun 30, 2017 7:58 am ]
Post subject:  Re: Mouse & Shared folder

I found very useful the advice of Ronald P. Regensburg and adespoton to transfer files to and from Qemu. About my question on the mouse I have now put the speed on fast and is faster but it is not fluid, can not make precise moves.

Author:  HedgehogAlbedo [ Thu Dec 06, 2018 9:11 am ]
Post subject:  Re: Mouse & Shared folder

Another way to transfer files - in my use case because I'm using an IDE in the host but compiling code on the ARM QEMU guest - is to setup something like fswatch in combination with a file syncing or copying tool (scp or rsync). When correctly configured this will copy files to the QEMU machine whenever they change.

scp on its own should be sufficient to move files to or from the guest without resorting to the risks of a mount-unmount cycle but requires running manually.

Couple of assumptions I've made: your host is a modern OS. fswatch works cross-platform but in subtly different ways. I've also assumed that the guest is running an ssh daemon. There's nothing stopping fswatch using FTP (and a corresponding guest FTP daemon) if that works for you. A Linux host also has inotify-based tools.

It's not strictly a shared folder but the end result is mostly the same.

HTH.

Author:  adespoton [ Thu Dec 06, 2018 5:12 pm ]
Post subject:  Re: Mouse & Shared folder

Ringworld wrote:
I found very useful the advice of Ronald P. Regensburg and adespoton to transfer files to and from Qemu. About my question on the mouse I have now put the speed on fast and is faster but it is not fluid, can not make precise moves.


I just started experiencing the same problem; changing to -m mac99,via=pmu fixed the issue for me. Seems to be something introduced in the CUDA emulation.

Author:  kanjitalk755 [ Tue Apr 23, 2019 1:35 pm ]
Post subject:  Re: Mouse & Shared folder

I have tried to improve mouse movement under macOS.

https://github.com/kanjitalk755/qemu

Author:  Cat_7 [ Tue Apr 23, 2019 4:59 pm ]
Post subject:  Re: Mouse & Shared folder

Hi,

I can't compile the source. The folder gamepad-osx is empty.
Should I somehow init the submodule?

Only submodules known are the default ones: ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 dtc capstone

EDIT: I found the required files here: https://github.com/suzukiplan/gamepad-o ... 2349cdd495

Best,
Cat_7

Author:  kanjitalk755 [ Wed Apr 24, 2019 3:04 am ]
Post subject:  Re: Mouse & Shared folder

I found how to do mouse integration, but it didn't work QEMU3.1.0/4.0.0-rc4.

https://wiki.archlinux.org/index.php/QEMU#Mouse_integration

Does anyone know how to do mouse integration with the latest version?

Author:  Cat_7 [ Wed Apr 24, 2019 4:15 am ]
Post subject:  Re: Mouse & Shared folder

I struggled with that before, but there is no tablet driver available in Mac OS 9.

Some fixes to the SDL code were made by the SDL maintainer to get a decent mouse/keyboard behaviour in Mac OS 9. Particularly when two Qemu instances were running.

As OSX hosts do not use SDL or GTK by default, it might be the mouse integration does not work for OSX guests?

Best,
Cat_7

Author:  adespoton [ Wed Apr 24, 2019 5:45 am ]
Post subject:  Re: Mouse & Shared folder

How does VirtualBox do it? Because it definitely has Mouse Integration under macOS.

Author:  kanjitalk755 [ Wed Apr 24, 2019 1:33 pm ]
Post subject:  Re: Mouse & Shared folder

According to System Profiler, the guest OS X is connected to a USB tablet.

It turned out that QEMU's mouse integration can be realized by appending "-usb tablet" argument if guest is OS X.

If Mac OS 9 has a standard USB tablet driver, the mouse integration may be realized.

Author:  adespoton [ Wed Apr 24, 2019 3:46 pm ]
Post subject:  Re: Mouse & Shared folder

Right... after checking, that's how VBox does it too. Of course, it doesn't run OS 9.

I know there are tablet drivers for classic Mac OS (Wacom ones, for instance), but I'm not sure offhand if OS 9 has them by default. I would expect it to, as 10.1 contains them, but Apple was not really consistent back then.

If integration doesn't work by default with "-usb tablet" then we could try installing a Wacom driver and see if that makes it work.

Author:  kanjitalk755 [ Thu Apr 25, 2019 9:46 am ]
Post subject:  Re: Mouse & Shared folder

I tried Wacom tablet driver with argument "-device usb-wacom-tablet".

http://macintoshgarden.org/apps/wacom

Unfortunately it behaved like a mouse (relative position) even if specifying pen mode (absolute position).

Author:  kanjitalk755 [ Tue Apr 30, 2019 10:28 am ]
Post subject:  Re: Mouse & Shared folder

I have developed an application for mouse integration between QEMU and Mac OS 9.

https://github.com/kanjitalk755/macos9-usb-tablet/releases

    Expand USBTablet.sit and move to System Folder -> Startup Items.
    Append "-device usb-tablet" instead of "-device usb-mouse" to argument of QEMU.

This is experimental, you may lost mouse control.

Author:  Cat_7 [ Tue Apr 30, 2019 2:27 pm ]
Post subject:  Re: Mouse & Shared folder

Hi,

The application works with MacOS 9.2 when you use --M mac99 -device usb-kbd -device usb-tablet, as this does not present usb devices by default to Mac OS.
Using -M mac99,via=pmu already presents usb mouse and kbd to Mac OS, so the mouse gets stuck in the left upper corner.

Mouse control is temporarily lost before the application is loaded from the start-up folder.
It seems the mouse can move out of the Mac OS window, but it requires a click in the Mac OS window to capture it again.

The application crashes in my MacOS 9.0 when used with -M mac99 -device usb-kbd -device usb-tablet.

Best,
Cat_7

Author:  kanjitalk755 [ Wed May 01, 2019 5:44 am ]
Post subject:  Re: Mouse & Shared folder

Cat_7 wrote:
Using -M mac99,via=pmu already presents usb mouse and kbd to Mac OS, so the mouse gets stuck in the left upper corner.

You can't use it if you can't delete the usb-mouse.

Cat_7 wrote:
Mouse control is temporarily lost before the application is loaded from the start-up folder.

If it is System Extension, it will be effective earlier, but the document for making it was not found.

Cat_7 wrote:
It seems the mouse can move out of the Mac OS window, but it requires a click in the Mac OS window to capture it again.

The mouse grab is uncontrollable from guest OS.

Cat_7 wrote:
The application crashes in my MacOS 9.0 when used with -M mac99 -device usb-kbd -device usb-tablet.

It may not be usable if not Mac OS 9.2.

Author:  kanjitalk755 [ Wed May 01, 2019 1:34 pm ]
Post subject:  Re: Mouse & Shared folder

kanjitalk755 wrote:
Cat_7 wrote:
It seems the mouse can move out of the Mac OS window, but it requires a click in the Mac OS window to capture it again.

The mouse grab is uncontrollable from guest OS.

I have fixed mouse grab of QEMU.

https://github.com/kanjitalk755/qemu

Author:  adespoton [ Wed May 01, 2019 3:28 pm ]
Post subject:  Re: Mouse & Shared folder

kanjitalk755 wrote:
Cat_7 wrote:
Mouse control is temporarily lost before the application is loaded from the start-up folder.

If it is System Extension, it will be effective earlier, but the document for making it was not found.


I think I've got an extension template around somewhere; I used to have luck with just shoehorning the code in to a pre-compiled shell using ResEdit as well.

Let me know if you need any help here.

Author:  kanjitalk755 [ Thu May 02, 2019 11:39 am ]
Post subject:  Re: Mouse & Shared folder

Please let me know if there is a sample code to make INIT.

Author:  adespoton [ Thu May 02, 2019 3:43 pm ]
Post subject:  Re: Mouse & Shared folder

Which IDE are you using? I've got sample code stashed away somewhere for MPW and also for CodeWarrior.

[edit] Found the following:
https://www.applefritter.com/node/13008 - CDEV framework for CodeWarrior
ftp://ftp.uni-potsdam.de/pub/systems/ma ... ev-src.txt - cdev-stub-cw.hqx (another CDEV stub for CodeWarrior).

[edit2] Found this:
https://retrocomputing.stackexchange.co ... sic-mac-os

IIRC, you just take the CODE resource and change it to an INIT resource, then lock it.

Also, it looks like the source for Extensions Manager is available here:
https://staticky.com/mirrors/ftp.apple. ... ool_Chest/
This would make a good framework if you want to build from scratch using MPW.

Author:  kanjitalk755 [ Fri May 03, 2019 9:55 am ]
Post subject:  Re: Mouse & Shared folder

adespoton wrote:
Which IDE are you using? I've got sample code stashed away somewhere for MPW and also for CodeWarrior.

I use CodeWarrior Pro 6.

The links you introduced unfortunately did not fit my purpose.

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/