You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
File #1 in the PB/DOS Libraries section is 1STMOUSE.ZIP, which contains mouse
routines for FirstBasic. These should be perfectly compatible with PB/DOS 2.1.
You will probably find mouse support in many of the general-purpose libraries.
If the library is for PB/DOS 3.x, you might try contacting the author to see if
an older version is available. Some of the best authors may be found right here
in the PowerBASIC Forums!
here a short collection of mouse-functions. I wrote them many years ago.
They alll use the MS-mouse-device-driver. They also works fine with Windows 9x ..
At first you have to init the mouse with mausstatus. You have to do
after you set the screen-mode.
If you have any further questions, you also can contact me directly ....
best regards Gerhard
sub mausstatus
shared maus
reg 1,&h00
call interrupt &h33
maus=reg(1)
end sub
sub mauspos(x,y,taste)
shared maus
if maus=0 then exit sub
reg 1,&h03
call interrupt &h33
x=reg(3)
y=reg(4)
taste=reg(2)
end sub
sub mauscuraus
shared maus
if maus=0 then exit sub
reg 1,&h02
call interrupt &h33
end sub
sub mauscurein
shared maus
if maus=0 then exit sub
reg 1,&h01
call interrupt &h33
end sub
sub setmauspos(x,y)
shared maus
if maus=0 then exit sub
reg 1,&h04
reg 3,x
reg 4,y
call interrupt &h33
end sub
sub mauswindowx(x1,x2)
shared maus
if maus=0 then exit sub
reg 1,&h07
reg 3,x1
reg 4,x2
call interrupt &h33
end sub
sub mauswindowy(y1,y2)
shared maus
if maus=0 then exit sub
reg 1,&h08
reg 3,y1
reg 4,y2
call interrupt &h33
end sub
sub mausrate(x,y)
shared maus
if maus=0 then exit sub
reg 1,&h0f
reg 3,x
reg 4,y
call interrupt &h33
end sub
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment