GLUTTABLETMOTIONFUNC(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

✨ GLUTTABLETMOTIONFUNC ✨

okay so bestie, welcome to the GLUTTABLETMOTIONFUNC(3) page β€” this one lives in the OpenGLUT manual, specifically the input section πŸ’– pull up a chair, we're talking tablets.


🌸 NAME 🌸

glutTabletMotionFunc β€” sets a tablet motion callback. that's it, that's the whole job, and she does it πŸ’…


πŸ“š LIBRARY πŸ“š

OpenGLUT β€” input πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <openglut.h>

void
glutTabletMotionFunc(void (* callback)( int x, int y ));

like, copy that exactly, no cap 🫢


πŸ“ PARAMETERS πŸ“

  • callback β€” your client tablet motion hook. this is the little function you hand over so OpenGLUT knows who to scream at when the tablet moves ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• this function registers a callback through which OpenGLUT reports a puck or stylus position, and that position comes in the range of [0, 2000] along the x and y axes. two thousand!! that's the whole vibe range, bestie πŸ¦‹

and the callback is bound to the current window β€” literally the window that's current when you call this, that's her home, that's where she stays πŸ’–


πŸ’€ CAVEATS πŸ’€

ok so sit down for this one:
  • OpenGLUT does not implement tablet support. i know. i KNOW. it's giving "the function exists but the feature said no" 😭
  • This API does not include tilt information. no tilt. none. zero tilt energy. the tablet can lean however it wants and we will simply never know πŸ™ˆ

🧚 TODO 🧚

so the notes say we might want to add support for this sooner or later πŸ‘€ and honestly? fair.

the reasoning goes like this: although a tablet could also be generalized as a mouse πŸ–±οΈ β€” like, same family, different font β€” there are relatively cheap AipTek HyperPen tablets out there, and slightly less cheap Wacom tablets sitting on many store shelves πŸ›’βœ¨ so the hardware is literally right there waiting, iykyk.


🌈 SEE ALSO 🌈

go read those too, they're the sisters of this page πŸ’œ


and that's a wrap, bestie!! πŸŽ€ this page came to you stamped UNDATED and labeled UNTITLED() at the bottom β€” mysterious, iconic, no date no title, main character energy fr fr πŸ’…βœ¨