Skip to content

Commit

Permalink
INF based setup
Browse files Browse the repository at this point in the history
Much easier to work with for an end-user.
  • Loading branch information
NattyNarwhal committed Nov 28, 2021
1 parent b2bfd12 commit cf3e65e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ against MASM and typos.
Only VMware is tested. VirtualBox and QEMU allegedly implement VMware's mouse
interface, but I haven't tested them.

## Building
## Building from source

Make sure you have the [Windows 3.1 Device Development Kit][3] installed.

Expand All @@ -90,8 +90,14 @@ nmake

If building from source; after building, run `INSTALL.BAT`.

If using a binary build, copy `MOUSE.DRV` over your existing installation's.
Obviously, make a backup copy first.
If using binaries, run Windows Setup. Point where the driver and INF file are;
if you're using the floppy, it'll likely be `A:`. Restart Windows and enjoy.
Serve with garnish.

Note that if you're using the GUI version of Windows Setup, after selecting
the VMware mouse driver for the first time, the combo box might go blank. If
that's the case, you need to select it again. This doesn't happen from the DOS
version of Windows Setup (when setup is run outside of Windows or at install).

[1]: https://wiki.osdev.org/VMware_tools
[2]: https://wiki.osdev.org/VMware_tools#Absolute_Mouse_Coordinates
Expand Down
4 changes: 2 additions & 2 deletions install.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rem Adapt this to your Windows installation.
rem XXX: Proper INF or something
copy mouse.drv C:\windows\system\mouse.drv
rem Only use for development; "production" use should use INF
copy vmwmouse.drv C:\windows\system\mouse.drv
8 changes: 4 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ ASM = masm -v -ML $(OPT) # MASM 4.01 & >
.asm.obj:
$(ASM) $*,$@;

mouse: mouse.drv
vmwmouse: vmwmouse.drv

mouse.obj: mouse.asm mouse.inc

ps2.obj: ps2.asm mouse.inc

mouse.drv: mouse.def mouse.obj ps2.obj
vmwmouse.drv: mouse.def mouse.obj ps2.obj
link @mouse.lnk
rc mouse.drv
mapsym mouse
rc vmwmouse.drv
mapsym vmwmouse
4 changes: 2 additions & 2 deletions mouse.lnk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mouse ps2
mouse.drv
mouse/map/al:16
vmwmouse.drv
vmwmouse/map/al:16
libw /NOD
mouse.def
6 changes: 6 additions & 0 deletions oemsetup.inf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[disks]
1=.,"VMware Mouse Disk"
[pointing.device]
;profile = mouse driver, Mouse description, VMD, Optional work section
vmwmouse = 1:vmwmouse.drv, "VMware mouse", x:*vmd
; XXX: Define a VMD device if we do it (i.e. a:vmwvmd.386)

0 comments on commit cf3e65e

Please sign in to comment.