Main > Main Forum

Newbie Mouse-hack question.

<< < (3/3)

NoOne=NBA=:
I would second the "just buy the stuff from Oscar" suggestion.

I've used his mouse hacks on pretty much everything (spinners/trackballs/steering wheel/rollers), and NEVER had a problem with them on ANYTHING.
The time you save is worth way more than the money you'll spend.--especially if you have to BUY a mouse to hack in the first place.
It's a much better option than HOPING the mouse you bought will work with the optics on the trackball.

Couple that mouse hack with a quick gamepad hack, and you'll have more buttons than you need.

Minwah:

--- Quote from: jerryjanis on September 10, 2004, 07:59:46 am ---Last time I checked, the Mame code couldn't handle 5 mouse buttons.

In mame/src/windows/input.c there's a line:

for (button = 0; button < 4; button++)

which is only looking for mouse buttons 0, 1, 2, and 3.  It's quite possible that changing that 4 to a 5 would add the extra button, but I can't be certain about that without testing it.

--- End quote ---

I know in adding my DirectInput(8) code, I found there are two mouse types you can use: 1 supports 4 buttons (0-3) and the other 8 buttons (0-7).  I couldn't get the 8-button type to work so I stuck with the 4 button type - I'd guess from what you say MAME does the same...

Personally I wouldn't use a 5 button mouse either, if only to be on the safe side.  Having done a mouse hack I would still agree with the others and say get one form Oscar.  The only downside for me is shipping to the UK.  

barranger:
ok so it definately seems that the way to go is with oscar's pre hacked mouse (It'll cost me close to that just for the mouse, plus MMP Products seems to ship in canada for him)  So correct me if I'm wrong but it's the "USB interface with L/R mouse buttons" on this page.  I guess he doesn't do pre-hacked gamepads as well eh? :)

Thanks a million for everyone's help, off to do more research,
Barranger

u_rebelscum:

--- Quote from: Minwah on September 10, 2004, 08:48:12 am ---
--- Quote from: jerryjanis on September 10, 2004, 07:59:46 am ---Last time I checked, the Mame code couldn't handle 5 mouse buttons.
--- End quote ---

I found there are two mouse types you can use: 1 supports 4 buttons (0-3) and the other 8 buttons (0-7).  I couldn't get the 8-button type to work so I stuck with the 4 button type - I'd guess from what you say MAME does the same...
--- End quote ---

Yes, mame sets the mouse to use the struct with 4 buttons.  (in src/windows/input.c, line 831 in 0.86u4).

NoOne=NBA=:

--- Quote from: barranger on September 10, 2004, 10:17:44 am ---So correct me if I'm wrong but it's the "USB interface with L/R mouse buttons" on this page.  I guess he doesn't do pre-hacked gamepads as well eh? :)

--- End quote ---

That's the one you want.
If you don't need to do Windows navigation with the trackball, I wouldn't worry about connecting the mouse buttons though.
You COULD save a couple bucks and get the one without the button support if you KNOW you don't need them.

As mentioned earlier, (joystick buttons, keyboard encoder buttons, etc...) tend to work better with MAME than the mouse buttons do.

And I don't think Oscar sells gamepad hacks.
There might be somebody on the board who is though.
You might want to search the Buy/Sell/Trade forum.

Navigation

[0] Message Index

[*] Previous page

Go to full version