Dec 082017
 
Mouse event handler in TC 2.0. C and TASM source is included. Stuffs the keyboard via mouse movement and button presses.
File MOUSE_C.ZIP from The Programmer’s Corner in
Category C Source Code
Mouse event handler in TC 2.0. C and TASM source is included. Stuffs the keyboard via mouse movement and button presses.
File Name File Size Zip Size Zip Type
MOUSE.ASM 6577 1974 deflated
MOUSE.OBJ 512 436 deflated
MOUSER.008 29558 9109 deflated
MOUSER.COM 2461 1539 deflated
MOUSE_C.C 3041 1069 deflated
MOUSE_C.EXE 16508 8813 deflated
MOUSE_C.PRJ 25 23 deflated
READ.ME 1721 852 deflated

Download File MOUSE_C.ZIP Here

Contents of the READ.ME file


I was fooling around with using a mouse in C. I wanted a nice simple
routine that could be easily adapted to already existing programs.
Basically, I only wanted to use the mouse in place of the keyboard
cursor keys and the enter key. Text screen menu selection and
the like.
Examples of mouse routines I saw usually involved polling
the mouse repeatedly in tight loops. I read documentation about the
mouse driver event handler extension, and that seemed to be the way to
go. I also thought about tapping into the RTC INT. Before sitting down
at the keyboard I checked the boards to see if someone else had already
written a similar type of program. Well, I could not find a C event
handler, but I did find a nice TSR by Paul Noeldner called mouser.008.
This program stuffs the keyboard from mouse movements. Also, its a PD
program (thanks Paul!). It seemed to work just fine. Well, I didn't
want a TSR, but the basic procedure was already there. TurboC makes it
pretty easy to interface a TASM program and in an evening I had what I
wanted. In the event that others are interested, I present my TC 2.0
adaptation. Naturally, use it, improve it etc.., as much as you like.
Ray Genovese
Files in the archive "mouse_c"
mouser.008 ;Paul's PD TSR ASM source code.
mouser.com ;Pauls assembled TSR of above
;It seemed appropriate to include these.
mouse_c.c ;TC 2.0 source code for a simple demonstration
mouse.asm ;My TASM adaptation of the event handler
mouse.obj ;The object code for mouse.asm
;{needed to build mouse.prj}
mouce_c.exe ;Executable demonstration
read.me ;This file.



 December 8, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)