Jump to content

Photo

Mouse routines


13 replies to this topic

#1 --- Ω --- OFFLINE  

--- Ω ---

    --- Ω ---

  • 12,053 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

  • 415 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,623 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,070 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,623 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 ONLINE  

mizapf

    River Patroller

  • 3,239 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

    Dragonstomper

  • 993 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,623 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

    Dragonstomper

  • 993 posts

Posted Tue Jun 5, 2018 5:06 AM

Here it is:

Attached Files



#10 mizapf ONLINE  

mizapf

    River Patroller

  • 3,239 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,623 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 ONLINE  

mizapf

    River Patroller

  • 3,239 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,070 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 ONLINE  

mizapf

    River Patroller

  • 3,239 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






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users