GLBasic forum

Main forum => GLBasic - en => Topic started by: Emil on 2012-Oct-30

Title: Can GLbasic handle tablet input?
Post by: Emil on 2012-Oct-30
Specifically the pressure of a wacom tablet...
I'm having a hard time trying to do it with c++ and SDL. So I'm taking a long shot in asking. I expect that it doesn't work in GLbasic in any easy way....

How would you guys go about doing it? any simple way out there?

Thanks
/Emil
Title: Re: Can GLbasic handle tablet input?
Post by: MrTAToad on 2012-Oct-30
In  a program ?  I'm surprised if it isn't treated like a normal mouse...
Title: Re: Can GLbasic handle tablet input?
Post by: Emil on 2012-Oct-30
A normal mouse doesn't have pressure.., that's the problem
Title: Re: Can GLbasic handle tablet input?
Post by: mentalthink on 2012-Oct-30
I don´t test, and I want have this characteristic too, I have a wacom and for make some paint program it´s nice... But whit the mouseAxis command?¿, perhaps getting the central mouse of the wheel whit the pen return something... I don´t test, but I have to do...
Title: Re: Can GLbasic handle tablet input?
Post by: erico on 2012-Oct-30
I´m interested too.

Dr. Petter once did a nice paint program and it supports pressure, but has an alternative for it using an analog joystick.
http://www.drpetter.se/project_cherrybrush.html

I saw no raw code but I guess emailing him could help?
Maybe wacom has some libs that could be imported inside GLB?
Title: Re: Can GLbasic handle tablet input?
Post by: spicypixel on 2012-Oct-30
There was a DLL for usage with BlitzBasic many years ago for pressure in tablets, might be usable for GLB in Win32, by looking at how the bb source handles it??? Dunno bout the link to it though, sorry.
Title: Re: Can GLbasic handle tablet input?
Post by: Hemlos on 2012-Oct-31
check if the output for the mouseaxis is anything but 1 and 0
Title: Re: Can GLbasic handle tablet input?
Post by: MrTAToad on 2012-Oct-31
Quote from: Emil on 2012-Oct-30
A normal mouse doesn't have pressure.., that's the problem
Ah true - I wouldn't be surprised if pressure could be found by reading the Z axis value...