Get Mouse pointer of a graphic tablet.

0 favourites
  • 3 posts
From the Asset Store
Create your game with this complete pack of images and animations!
  • I am trying to create an "eating simulator" where you can pick up food from a table.

    Thing is, I try to control it with a graphic tablet (wacom intuos pro) an stylus: While hovering above the Tablet, the Fork sprite should move with the cursor. As soon as i touch the tablet (=is touching Object), i can pick up food.

    I can't attach a sprite to the Pointer when using the stylus.

    Mouse.x and Mouse.y only works wehn i move the mouse.

    Theres touch.x/y, but it only updates X and Y when i acutally touch it.

    Is there an alternative way to get the position of the mouse pointer?

  • You could look into listening to pointer events which apparently work for styluses.

    developer.mozilla.org/en-US/docs/Web/API/Pointer_events

    However I have an older stylus that just moves the mouse when close to the surface. Maybe it’s something you can configure with your stylus’s settings.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks! I'm not familiar with listening events, however looking into the tablet settings an changing the Pojoection from "Tablet" to "Mouse" did the trick. I can now move the Mouse with the stylus pen!

    Unfortunately, this prevents me from using pressure and height.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)