FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
40 Lines of Python to Fake a Serial Mouse
NewsSystems

40 Lines of Python to Fake a Serial Mouse

via Dev.to TutorialSergey Dobrov3w ago

During the COVID lockdowns my son and I started playing The Settlers II in DOSBox. One of the coolest features of the game is that two players can play on the same computer in split screen, each controlling their own cursor — a surprisingly social multiplayer mode for a 1996 strategy game. The trick is that the second player uses a serial mouse. Unfortunately modern operating systems don't really expose the concept of multiple independent mice anymore — they all get merged into a single pointer. So if I wanted that old-school multiplayer experience back, I needed an adapter. My first thought was simple: maybe I can fake a serial mouse? In Unix systems everything is a file . If DOSBox expects a serial device, perhaps I can generate the right byte stream and feed it to it? Reading through the Linux docs and trying to hexdump the mouse device I realized I need to convert from PS/2 mouse protocol into Microsoft serial mouse protocol. The descriptions of both I quickly found on the Internet

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
13 views

Related Articles

8 Wireshark Patterns That Instantly Signal Something Is Wrong
News

8 Wireshark Patterns That Instantly Signal Something Is Wrong

Medium Programming • 1d ago

Let the commits tell the story
News

Let the commits tell the story

Lobsters • 1d ago

Good CTE, bad CTE
News

Good CTE, bad CTE

Lobsters • 1d ago

Weekly Digest #264
News

Weekly Digest #264

Medium Programming • 1d ago

Why Colocation Might Matter More Than We Think
News

Why Colocation Might Matter More Than We Think

Medium Programming • 1d ago

Discover More Articles