PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Pocket Quake mouse support ?

SonicSilicon · 07 Mar 2002, 22:25 UTC
I finally got around to purchasing a PocketPC 2002 (worth, the wait, in my opinion.)
Mine has USB hosting which means that I can plug USB devices into it and use them (if there's a WinCE driver.)
I already got a keyboard working with it (since there's a built in driver) and seems to have mouse support, too, just not with the GUI.
So, Dan, any way to add mouse support to Pocket Quake/Quake II?
I think that it could be done pretty easily when it comes to movements. As for actually showing the cursor(which I believe is not what you are talking about anyways), I think that would be a waste. The problem is, to my knowledge, the only ppc what can support USB is the e200, and Dan does not own an e200 (to my knowledge).
SonicSilicon · 08 Mar 2002, 00:51 UTC
I have a Cassiopeia E-200.
NEC's MobilePro P300 also has USB hosting abilities (and I think CompUSA has them on sale for about $300 US this week.)
I have an e200 also, but don't you think that requiring a mouse takes away from the portability of it all.
SonicSilicon · 08 Mar 2002, 01:58 UTC
Take away from portability? Nah!
Check this out : http://www.inflowdirect.com/fintracmousu.html
I should have been a bit broader and said pointing device instead of mouse.
Pocket Quake should work fine with a mouse as-is, assuming drivers are available and the Pocket PC OS recognizes it.

Dan East
SonicSilicon · 08 Mar 2002, 12:35 UTC
I guess there isn't a driver buil in, then.
I assumed there was since the one I plugged in lit up and the E-200 didn't complain.

Time to hunt for a driver.
Good luck. And if you find some, post links.
I've thought a bit on this, and took another look at the PQ sources. You will be able to use a mouse, but it won't be perfectly suited for control. The mouse button will not fire, but will trigger onscreen controls, or mlook if the mouse was in the mlook area when the button was pressed. When the mouse button is released mlook will stop. It would be very straightforward to add true support for mice, but I will wait until someone actually gets the hardware / drivers going with the OS first.

Dan East
Why wait?

And also, when you say straight-forward, do you mean not difficult or do you mean quick? (or both?)
The E-200 comes with built in support for most usb mice.
SonicSilicon · 09 Mar 2002, 03:26 UTC
It works! Uh, sort of...
I finally got a ballsy USB mouse working with Pocket Quake, then switched it over to a optical trackbal.
The trick seems to be switching focus away from Pocket Quake and then back.
Pressing the Windows key on my keyboard did the trick.
Good news is that it automatically kicks into Mouse View mode.

Of course toying with it makes me think I'd be better off with a stylus (for the time being.)
Both the mouse and the trackball ending up being extermely sensitive, even with the "Mouse Speed" set to its lowest in the Options.
Every so often I'd just keep spinning and spinning.
Sometimes making a quick action with the trackball would stop it, but not always.
Another hitch seems to be the extremely limited tilt upward (despite being able to look nearly straight down at the floor.)

I have no idea if this stems from the code modifications to make Stylus View work,
or if it's Windows CE's handling of pointing devices.

BTW, the mouse does work with the GUI, albiet sans cursor.
That would be kick ass to plug in my wirless kb and opticall mouse to play quake! But ive got an ipaq :(
Okay, first off, you need to turn off the auto-yaw rate. That was a custom var I added so that when the stylus reaches the edge of the display the view would start automatically rotating. Add the following line to autoexec.cfg to disable:
in_autoyawrate 0

The sensitivity is cranked up for stylus input. There is an additional multiplier I use to get the sensitivity where it needs to be for the stylus, so that will negatively affect mouse input. Also, when a mouse is used on PC games, the mouse cursor is constantly re-centered. Windows CE does not provide the ability to set the cursor position, so I don't know what the solution would be. The problem is that over time you will end up working the mouse cursor further and further in a specific direction. Eventually the OS will not allow it to go any further in that direction (I don't know if CE will even allow it to go beyond 0-239 on the X axis or not).

Dan East
Wouldnt it be pretty easy to edit the source to allow a console command to turn off the custom multiplier?
Yes.

Dan East
SonicSilicon · 09 Mar 2002, 16:38 UTC
Okay,
in_autoyawrate 0 stopped the spinning.
It also seems to be allowing the full range of mouse view as well.
The mouse still goes out of range which promptly stops its usefullness.
(Restarting P.Q. restarts the mouse, thankfully.)[/i]