x


Override mouse coordinates?

I have an unusual situation. I am using a 2 monitor setup with a touchscreen, where the touchscreen coordinates do not line up with the screen. I can fix it with some simple math, but is there a way to override the built-in mouse events, so that buttons and controls behave correctly? The only change I have to make is to halve the x coordinate.

more ▼

asked Aug 27 '10 at 04:22 PM

cranko gravatar image

cranko
11 1 1 2

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

There is no way to do this transparently, but you could implement a property that does the halving for you whenever you access it.

http://msdn.microsoft.com/en-us/library/x9fsa0sw(VS.80).aspx

more ▼

answered Aug 28 '10 at 04:24 AM

Daniel Brauer gravatar image

Daniel Brauer
1.4k 12 19 38

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x983
x953
x40

asked: Aug 27 '10 at 04:22 PM

Seen: 1072 times

Last Updated: Aug 27 '10 at 04:22 PM