I can't find the relevant topic atm, but I though you claimed you had already written a mouse driver a few months ago..? Sounds somewhat unfair to claim you wrote something, and then use someone else's hard work.kerm_martian wrote:Since you got the mouse working and I already have a mouse in Doors CS 5 and support for SEs, this is definitely getting ported.
[Staff][Alpha] Emerson - TI-83+ Keyboard/Mouse
Moderator: MaxCoderz Staff
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
- benryves
- Maxcoderz Staff
- Posts: 3089
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Anyone wanting to test: use this one instead.
I've lengthed the timeouts and retries on some of the AT routines, as well as adding short pauses when initialising the mouse. As a result, all 3 rodents I had to test with initialise correctly.
The zip also contains a potentially useful AT "terminal", with which you can send commands to the connected device. Curiously, the keyboard I've been using sends F5 rather than FA as an ack... maybe why the PC it used to be on would compain that there wasn't a keyboard attached
As for mixing mouse and cursor keys; the mouse updates the (16-bit) values of Mouse._x and Mouse._y by an offset every Mouse._update, so you can manually change the values if you so wish. It's very easy to mix direct input and the mouse routines, especially as none of the calls in Emerson are blocking
I've lengthed the timeouts and retries on some of the AT routines, as well as adding short pauses when initialising the mouse. As a result, all 3 rodents I had to test with initialise correctly.
The zip also contains a potentially useful AT "terminal", with which you can send commands to the connected device. Curiously, the keyboard I've been using sends F5 rather than FA as an ack... maybe why the PC it used to be on would compain that there wasn't a keyboard attached
As for mixing mouse and cursor keys; the mouse updates the (16-bit) values of Mouse._x and Mouse._y by an offset every Mouse._update, so you can manually change the values if you so wish. It's very easy to mix direct input and the mouse routines, especially as none of the calls in Emerson are blocking
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact:
Dude, of course I'm going to ask first.Timendus wrote:I can't find the relevant topic atm, but I though you claimed you had already written a mouse driver a few months ago..? Sounds somewhat unfair to claim you wrote something, and then use someone else's hard work.kerm_martian wrote:Since you got the mouse working and I already have a mouse in Doors CS 5 and support for SEs, this is definitely getting ported.
@Kerm: I expected that much But didn't you already have it..?
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
Did someone say WTFOMGBBQ?!?!?!.
Looks great Ben!
Looks great Ben!
- benryves
- Maxcoderz Staff
- Posts: 3089
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
The device needs to get 5V from somewhere, sadly.Patori wrote:Is that an external power supply I see?
Already done, as well as Intellimouse extensions for the scrollwheelI wanna see you enable clicking with the mouse... that would be super-cooly, chief!!
I built myself a proper adapter:
...so testing can be a little easier
Yeah, that's pretty much what I wanted to make Looking good. I haven't been able to get a PS/2 socket yet though, but I found an old PS/2 mouse with the described four pins inside, so I'll give it another try one of these days I'm not yet sure where I can get +5v from easily though...
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
Heheh I was trying to get this done without a trip to the electronics shop
I just checked your development journal, and read about Vinegar Bloody amazing! How long do you intend not to post this on the MC board?
I just checked your development journal, and read about Vinegar Bloody amazing! How long do you intend not to post this on the MC board?
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact:
- benryves
- Maxcoderz Staff
- Posts: 3089
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
In which case, releasing my routines would be useful... building this stuff just for a couple of ropey demos is a bit of a waste of resources!
I've slowed down development after realising that my test keyboard is broken (not sending the correct codes back) - the mouse stuff is pretty sharp, though, so I'll probably release that as a half-version of the include file.
I haven't got around to 5-button mouse support, as this adds even more complexity to the initialisation - in fact, sticking to standard 3-button mouse and no scrollwheel is much better, as it leaves the mouse as "hot-pluggable" and has a much faster initialisation.
I've slowed down development after realising that my test keyboard is broken (not sending the correct codes back) - the mouse stuff is pretty sharp, though, so I'll probably release that as a half-version of the include file.
I haven't got around to 5-button mouse support, as this adds even more complexity to the initialisation - in fact, sticking to standard 3-button mouse and no scrollwheel is much better, as it leaves the mouse as "hot-pluggable" and has a much faster initialisation.