Sega mouse no longer supported?

SGDK only sub forum

Moderator: Stef

Post Reply
Boyfinn
Interested
Posts: 49
Joined: Sat Aug 08, 2015 12:12 pm
Location: Lapland, Finland

Sega mouse no longer supported?

Post by Boyfinn » Sat May 19, 2018 8:04 pm

I've been trying to use

Code: Select all

JOY_setMouseEventHandler
But it doesnt work anymore?
Has the name for it changedor is it no longer supported?

Chilly Willy
Very interested
Posts: 2586
Joined: Fri Aug 17, 2007 9:33 pm

Re: Sega mouse no longer supported?

Post by Chilly Willy » Sun May 20, 2018 1:17 am

The mouse was rolled into the joystick support a LOOOOONG time ago. Just use JOY_setEventHandler() and you'll get any type of controller plugged into the port. There are functions to determine the type of device you're getting data from so that you can handle the differences, where applicable. You might want to look at the joytest sample program included with the SGDK source to get an idea of how to handle all sorts of controllers.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest