Soo, apparently love doesnt have support of graphics tablets?
Like detecting if tablet connected or pressure, etc?
P.S:
Well, as Alex said on GitHub, i guess there will no proper support for tablets unless SDL will have it
Sadly
graphics tablet
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
graphics tablet
Last edited by GVovkiv on Sun Mar 07, 2021 9:53 am, edited 1 time in total.
Re: graphics tablet
Well, seems like it only apply for touch-screen, not tabletsdarkfrei wrote: ↑Fri Mar 05, 2021 4:03 pmNot sure, but
https://love2d.org/wiki/love.touch.getPressure
Re: graphics tablet
It can be also for the tablets, you get some pen-touches here.GVovkiv wrote: ↑Fri Mar 05, 2021 4:14 pmWell, seems like it only apply for touch-screen, not tabletsdarkfrei wrote: ↑Fri Mar 05, 2021 4:03 pmNot sure, but
https://love2d.org/wiki/love.touch.getPressure
Code: Select all
function love.draw()
local touches = love.touch.getTouches( )
for i, id in pairs (touches) do
local pressure = love.touch.getPressure( id )
love.graphics.print('i: '..i..' pressure: '..pressure, 32, 32+20*i)
end
end
- Attachments
-
- touch-pressure-01.love
- (313 Bytes) Downloaded 244 times
Last edited by darkfrei on Fri Mar 05, 2021 7:34 pm, edited 1 time in total.
Re: graphics tablet
Well, for huion h430p it returns nothingdarkfrei wrote: ↑Fri Mar 05, 2021 4:03 pmCode: Select all
function love.draw() local touches = love.touch.getTouches( ) for i, id in pairs (touches) do local pressure = love.touch.getPressure( id ) love.graphics.print('i: '..i..' pressure: '..pressure, 32, 32+20*i) end end
Re: graphics tablet
The Huion Inspiroy H430P looks like an alternative for a mouse input; so more like a graphics tablet than a tablet computer. Try https://love2d.org/wiki/love.mouse.isDown and https://love2d.org/wiki/love.mouse.getPosition.
-
- Party member
- Posts: 512
- Joined: Wed Oct 05, 2016 11:53 am
Re: graphics tablet
It's an alternative for mouse input, yes, like all other graphics tablets. So while you can track them with love.mouse functions, I don't think there's any functionality in löve to detect pressure of the pen touches if love.touch.getPressure doesn't work. Not sure how you would go about it with Huion tablets, but Wacom tablets provide an API that you could hook up to with C, and then from where with luajit. Maybe Huion might have similar opportunity.
Re: graphics tablet
I've tried this code (touch-pressure-01.love) with Wacom Bamboo Fun Pen & Touch, it feels like a mouse click, the pressure is always 1 (Wacom Bamboo Fun Pen & Touch supports pressure, the pen with 1024 levels of pressure sensitivity).
Re: graphics tablet
well, even if huion have one, i don't know C, so i can't do nothing about itMrFariator wrote: ↑Fri Mar 05, 2021 6:43 pm It's an alternative for mouse input, yes, like all other graphics tablets. So while you can track them with love.mouse functions, I don't think there's any functionality in löve to detect pressure of the pen touches if love.touch.getPressure doesn't work. Not sure how you would go about it with Huion tablets, but Wacom tablets provide an API that you could hook up to with C, and then from where with luajit. Maybe Huion might have similar opportunity.
Re: graphics tablet
i know, but i need more specific thingsXugro wrote: ↑Fri Mar 05, 2021 6:36 pmThe Huion Inspiroy H430P looks like an alternative for a mouse input; so more like a graphics tablet than a tablet computer. Try https://love2d.org/wiki/love.mouse.isDown and https://love2d.org/wiki/love.mouse.getPosition.
like checking if tablet connected to pc, or not
get pressure
get buttons of tablet (if it have one) and binding them
etc
Who is online
Users browsing this forum: No registered users and 77 guests