laptop mouse pad + Mouse.Where
Author |
Message |
tenniscrazy
|
Posted: Thu May 17, 2007 11:14 am Post subject: laptop mouse pad + Mouse.Where |
|
|
when you use the Mouse.Where command with a touch mousepad on a laptop it doesn't work for some reason.
does anyone have a solution to this? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
tkas19
|
Posted: Thu May 17, 2007 9:04 pm Post subject: RE:laptop mouse pad + Mouse.Where |
|
|
it works for me |
|
|
|
|
|
Dan
|
Posted: Fri May 18, 2007 12:04 am Post subject: RE:laptop mouse pad + Mouse.Where |
|
|
It also works for me, there should be no reason why mouse.where whould work differntly for a diffrernt kind of poitning device in turing since it is based on where the pointer is on the screen and i blive it uses the windows API to determin it's location so it is not driver/mouse depenendent.
I whould check to make shure you mouse is working noramly with windows. If it seems ok, post your code since it may be how you are using the comand. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
tenniscrazy
|
Posted: Fri May 18, 2007 11:01 am Post subject: Re: laptop mouse pad + Mouse.Where |
|
|
thats weird... it is on my teachers laptop, and none of the programs in our class that use Mouse.Where work on it
code: | loop
Pic.Draw (picmenu, x2, y2, picMerge)
View.Update
Input.Flush
Mouse.Where (x1, y1, button)
if button = 1 and x1 > 249 and x1 < 366 and y1 > 244 and y1 < 272 then % If the mouse is over those location and clicked the game should begin
wipe
y := 36
x := 36
xg1 := 420
yg1 := 348
key := false
ninja
%-----------------------------------------------------------------------------------------------------------------------
elsif button = 1 and x1 > 133 and x1 < 480 and y1 > 146 and y1 < 173 then
wipe
do2
%-----------------------------------------------------------------------------------------------------------------------
elsif button = 1 and x1 > 200 and x1 < 410 and y1 > 45 and y1 < 75 then
wipe
do3
else
end if
end loop | [/code] |
|
|
|
|
|
Albrecd
|
Posted: Fri May 18, 2007 12:22 pm Post subject: Re: laptop mouse pad + Mouse.Where |
|
|
I don't see any problems with your code (unless there's an error in your procedures that aren't shown).
If you have access to another computer you should try to run your code on it and see if the problem persists. |
|
|
|
|
|
tenniscrazy
|
Posted: Tue May 22, 2007 10:29 am Post subject: RE:laptop mouse pad + Mouse.Where |
|
|
the code works on all other computers its just the laptops mousepad thing. It works if you plug in a mouse to the laptop tho, so it must just be the touch pad thats weird...oh well |
|
|
|
|
|
|
|