Jump to content

Photo

Mouse routines


18 replies to this topic

#1 --- Ω --- OFFLINE  

--- Ω ---

    --- Ω ---

  • 12,499 posts
  • Location:워싱턴 주

Posted Thu May 31, 2018 8:57 AM

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.



#2 BeeryMiller OFFLINE  

BeeryMiller

    Moonsweeper

  • 479 posts
  • Location:Campbellsburg, KY

Posted Thu May 31, 2018 9:36 AM

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

 

 

 

Attached Files



#3 jedimatt42 OFFLINE  

jedimatt42

    Stargunner

  • 1,748 posts
  • Location:Beaverton, OR

Posted Mon Jun 4, 2018 11:51 AM

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@



#4 InsaneMultitasker OFFLINE  

InsaneMultitasker

    River Patroller

  • 2,159 posts

Posted Mon Jun 4, 2018 3:09 PM

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. 



#5 jedimatt42 OFFLINE  

jedimatt42

    Stargunner

  • 1,748 posts
  • Location:Beaverton, OR

Posted Mon Jun 4, 2018 3:15 PM

The F18A does, and you can do text in bitmap mode as well, and still use sprites. So there are options for the 9918... 

 

I remember character based pointers back in the MS-DOS days... that was always less than desirable.  

 

-M@



#6 mizapf OFFLINE  

mizapf

    River Patroller

  • 3,313 posts
  • Location:Germany

Posted Mon Jun 4, 2018 3:16 PM

I used a mouse in my Fractals program in Text2 mode - as a yellow block cursor. It worked sufficiently well.



#7 atrax27407 OFFLINE  

atrax27407

    Stargunner

  • 1,025 posts

Posted Mon Jun 4, 2018 4:34 PM

I'm currently using (and have for sometime) used an RS232 mouse routine that runs from XB.


Edited by atrax27407, Mon Jun 4, 2018 4:35 PM.


#8 jedimatt42 OFFLINE  

jedimatt42

    Stargunner

  • 1,748 posts
  • Location:Beaverton, OR

Posted Mon Jun 4, 2018 11:12 PM

I'm currently using (and have for sometime) used an RS232 mouse routine that runs from XB.

 

Can you point me at that :)  (ooh, sorry about the pun...)   I'd like to see that programming interface and compare it to the XB mechatronics interface... 

 

-M@



#9 atrax27407 OFFLINE  

atrax27407

    Stargunner

  • 1,025 posts

Posted Tue Jun 5, 2018 5:06 AM

Here it is:

Attached Files



#10 mizapf OFFLINE  

mizapf

    River Patroller

  • 3,313 posts
  • Location:Germany

Posted Tue Jun 5, 2018 9:28 AM

I used a mouse in my Fractals program in Text2 mode - as a yellow block cursor. It worked sufficiently well.

 

Just to get an idea.

 



#11 jedimatt42 OFFLINE  

jedimatt42

    Stargunner

  • 1,748 posts
  • Location:Beaverton, OR

Posted Tue Jun 5, 2018 3:21 PM

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.co...ronic Mouse.pdf

 

-M@



#12 mizapf OFFLINE  

mizapf

    River Patroller

  • 3,313 posts
  • Location:Germany

Posted Tue Jun 5, 2018 3:36 PM

Mechatronics goes through the joystick port, so that's a different challenge.



#13 InsaneMultitasker OFFLINE  

InsaneMultitasker

    River Patroller

  • 2,159 posts

Posted Tue Jun 5, 2018 4:11 PM

I used a mouse in my Fractals program in Text2 mode - as a yellow block cursor. It worked sufficiently well.

 

 I can't believe I never came across / run your program before.  Nicely done!   Looks like you used the blink table for your cursor display?



#14 mizapf OFFLINE  

mizapf

    River Patroller

  • 3,313 posts
  • Location:Germany

Posted Tue Jun 5, 2018 4:28 PM

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.

Attached Files



#15 Schmitzi OFFLINE  

Schmitzi

    River Patroller

  • 4,336 posts
  • ToXiC
  • Location:Germany

Posted Fri Jun 22, 2018 3:47 PM

here my "Mouse-Related" list:

 

thanks for any info on that

 

Attached File  TI-99-4A-HW-HID-MOUSE-v1.01.pdf   45.6KB   5 downloads



#16 --- Ω --- OFFLINE  

--- Ω ---

    --- Ω ---

  • Topic Starter
  • 12,499 posts
  • Location:워싱턴 주

Posted Fri Jun 22, 2018 4:31 PM

here my "Mouse-Related" list:

 

thanks for any info on that

 

attachicon.gifTI-99-4A-HW-HID-MOUSE-v1.01.pdf

 

There is a mouse driver for the TIPI/RPi that works with TI-Artist.



#17 matthew180 OFFLINE  

matthew180

    River Patroller

  • 2,536 posts
  • Location:Castaic, California

Posted Fri Jun 22, 2018 10:33 PM

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).



#18 RXB OFFLINE  

RXB

    River Patroller

  • 3,252 posts
  • Location:Vancouver, Washington, USA

Posted Sat Jun 23, 2018 10:55 AM

That sounds great and would like to see a demo of that or the source.



#19 Asmusr OFFLINE  

Asmusr

    River Patroller

  • 2,819 posts
  • Location:Denmark

Posted Sat Jun 23, 2018 11:42 AM

This is the demo that Matthew mentioned. Many of you will have seen this before. From the disk run E/A#3 WIMP. Or use the bin file in js99er.net. It would be interesting to change this to use the TIPI mouse driver, but I don't have a TIPI yet.

 

Attached Files






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users