Trying to get actual x y position of finger on touchpad
I’m working on a patch that will involve using a (windows) laptop touchpad as a drawing surface, sort of like the inklet app on Mac, however I’m having trouble figuring out a way to get the raw x y data to Max and not the position of the pointer as you get from the mousestate object.
Anyone got any ideas? Any help would be much appreciated.
is this touchpad an external (USB) device? If so, there are two possibilities (I know of): one is the [hi] object; the other is to hack the touchpad, and get the voltages into an Arduino.
Wouldn’t it also be possible to reverse the mousestate-data to the raw data (if you know what the resolution is of the touchpad) by dividing the screen-resolution with the touchpad-resolution? I mean it’s probably the same way it adjusts itself to different screen-resolutions (800*600, 1024*768, etc)
Patches say a lot more than words
----------begin_max5_patcher---------- 723.3oc2W01aaBCD9yTo9evB0OzNklYaLuj8s86XpZhPbR7FXy.iV1p1+8YN BoooPgjRBqSQhS4rA+7736Ne9wquxxdtZCO2F8IzWPVVOZ7XA9J8XU6vxNIb STbXNLQ6HURBWpsmrcPMeiFFfP8Qy4B4JjdMGkwyUwEZgRhTKAOohHcdrXAO a26FKj7HUgD9.zZuhEv2SM+a2yH6lqrHQHi4Z.EjZuKURct32bvIcJt1eZnN ZsAKeMiGoqHnC1wLNhxHkFhGtz3vlhQOr2ZnJz0KBd+EQFl.Kh8myDgw1vH+ 45qJsFyjdKeMnB6yWZy7k9J7hTQnZd4F.FVP6Da2Wqxm9Wo7pOksnbisxfd3 j4nj+SCYdYDBeSZlYWx+C2Rt+1aVR93MKo2cWS5fCtCc3H12oAvNMInRXntf ZgaWdHsJO1O8JCYLwxXkAAMoCT+cdSMYTl7tvxTp8XGalOvGWvf293YT6Ml1 PoUwUP1iKtK0q8fKCMCgvq4gxUWdoLnSoj4cdkRpO4+Coza3pJusN76eMgMf ZBd16HMo6p80k5aR2HACWk9smDVWoG6+OWk91zpBYZXz2Q3peMpStCW7Ekxp DHPmBl0kLw5S+BSNn6gKo7kGkw4Rf8MHcACtxE.O8BN8DyXQNnUf8xJV+Hgq yTHmFCyXCW13LnQKW3LUOmSOU7LV5RqVsJtwXFmNhYZkuNrZldp78L07sYwy 44lldZjuC38rpzg.Xe2uy8c2iu1xIThoZtv8MO75t.CJG3.QMWUjEUik5FHQ 6wiEF0THglH2aVkmmgHOMq0hEK3xmccxDwhTkgAaQxqsW2evw5M3vWbvQ5kx Ud22Q.bk0A6I3FgsU+9.NfBi.375M3FgXNS+RHmt.2g56kDbzNA2Hks1Kr4M ZXizI1XiB152wCtiB150oCGc3FAyl5ZNpGW9j53T+mKGjIiyQF85Di2LzJcX L+EQu4SB -----------end_max5_patcher-----------
That’s a good idea extrapolating back from the mousestate data, however that requires the finger to be in contact with the touchpad at all times, whereas I’d rather be able to put a finger down at any point and for that location to be recognised. In theory it must be possible as there are bits in the device settings dialogues that show a diagram of the touchpad area which show where the finger is in contact with it to calibrate scrolling areas etc. (it is an internal one in answer to your question n00b_meister), it’s a matter of getting at that data somehow which is a bit beyond me.
[hi] looks promising however I can’t get it to see the touchpad yet, I guess because it’s internal and not usb, I’ll keep at it though.
Any further ideas would be much appreciated. Thanks!
have you tried the fingerpinger external ?
fingerpinger is really well done… thanks for sharing.
Fingerpinger looks great, but it’s only on Mac, and I’m firmly stuck in PC land at the moment unless I can make one of my crusty old laptops into a Hackintosh, although I’m guessing driver issues in that case would make the situation worse. Aaaannndd, sadly [hi] doesn’t seem able to see any hardware on my machine, or even a usb mouse. Getting frustrated.
Forums > MaxMSP