Jump to content
IGNORED

Mouse routines


Omega-TI

Recommended Posts

Is there any usable and downloadble 'stock code' for mice anywhere openly available for TI developers? Something that could easily be updated or is already currently up-to-date for contemporary hardware?

 

I know Stuart figured out how to get pointer coordinates working in his Internet browser that enabled point and click selections with a joystick or trackball. It seems these could be adapted to work with the TIPI mouse as well.

 

I don't know the history of the mouse interface for TI-Artist with TIPI. Was it something done by ElectricLab like the MOUSEDEMO?

 

I see some amazing stuff starting to coalesce and it's got me wondering. At any rate if the code was out in the open, not having to re-invent the wheel could be a motivator for a whole new class of programs.

Link to comment
Share on other sites

Bruce Hellstrom wrote I believe both serial and bus mouse drivers for MDOS for the Geneve. If you have one of my MESS HD images, check out the directory BRUCE the source code is there. That should at least get you somewhere. There are two sets of source files in that directory.

 

There is MOUSE22A-S and MOUSE22B-S for the Geneve bus mouse. There are also three files for the serial mouse MOUSS22A-S, MOUSS22B-S, and MOUS22C-S.

 

It is likely Bruce's Mouse Driver Package was uploaded as an ARK or disk image somewhere

 

Not sure what is entailed with a USB mouse interfaced with the TIPI to know if the serial or bus mouse code would accelerate any design efforts.

 

I've attached a DSK image I think contains all the files in question plus some extras not knowing if they are needed. If you need something more or are missing a file, let me know

 

Beery

 

 

 

Hellstrom.dsk

  • Like 2
Link to comment
Share on other sites

TI Artist Plus comes with a Mechatronics mouse driver. This is what I adapted to create the TIPI driver. That TIPI source code is available in github for both the ti artist driver (assembly) and the mouse demo (gcc)

 

The source code for the Mechatronics XB mouse driver is bundled with something... somewhere... Or I have the object code.. can't remember... Anyway, I plan to eventually write a work-alike TIPI driver, so anything loading MOUSE/O can just load mine, and that XB code should work.

 

---

 

The question I would have is: what other applications for the 4A supports a mouse? (Mechatronics or Serial)

 

-M@

Link to comment
Share on other sites

There aren't many programs with mouse integration. Personally, I never pursued a mouse because sprites are not available in the 9918 Text mode or v9938 Text 2 mode. I didn't care for a character-based pointer so I pursued key-based menus and highlighting instead. I thought I read somewhere that the F18A text modes allow for sprites, which might make for some interesting possibilities.

  • Like 1
Link to comment
Share on other sites

Here it is:

 

 

Cool, so the programming interface appears to be:

 

CALL LINK("MOSON") -- Enables mouse control via vdp interrupt service routine to move sprite #1

CALL LINK("MOSOFF") -- Disables vdp interrupt service routine.

CALL LINK("MOSBUT", B1, B2, B3) -- load state of 3 mouse buttons into variables B1, B2, and B3, 1 == pressed, 0 == not pressed

 

Location of mouse pointer is found using CALL POSITION for sprite #1

 

This is considerably different than the Mechatronics XB programming interface. Simpler it would appear. :) http://ftp.whtech.com/datasheets%20and%20manuals/Hardware/Mechatronic/Mechatronic%20Mouse.pdf

 

-M@

  • Like 1
Link to comment
Share on other sites

I think I'll upload a disk image here. I seem to remember I already did that some time ago, but I only found my backport for the TI/EVPC.

 

Yes, this is all done with the blink table. I admit I don't know too many details anymore - just have a look at that year ... my goodness.

 

Note that this is a native MDOS application.

fractals20.dsk

  • Like 5
Link to comment
Share on other sites

  • 3 weeks later...

There aren't many programs with mouse integration. Personally, I never pursued a mouse because sprites are not available in the 9918 Text mode or v9938 Text 2 mode. I didn't care for a character-based pointer so I pursued key-based menus and highlighting instead. I thought I read somewhere that the F18A text modes allow for sprites, which might make for some interesting possibilities.

 

Once you unlock the F18A, sprites are available in all modes. Initially I had the sprites always available, i.e. even when the F18A was locked, but I soon realized that legacy software using T40 or T80 would not have code to disable the sprites because it was not something that had to be done on the original VDPs. So I had to put the functionality behind the F18A lock.

 

You could also use the bitmap layer for the cursor, which gives you the ability to change the size from 1x1 pixel to 256x192 pixels (if you really want to use that much memory). The BML also provides 4-colors per pixel. Sprites can also provide up to 8-colors. There is a demo that Rasmus wrote for the F18A that demonstrates the T80 mode with color tile attributes and a sprite-based mouse pointer controlled by joystick (IIRC).

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...