Search found 676 matches

by GVovkiv
Fri Mar 05, 2021 10:03 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 9869

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). yeah but, i still need thing like pressure, tablet butt...
by GVovkiv
Fri Mar 05, 2021 10:01 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 9869

Re: graphics tablet

Well, for huion h430p it returns nothing 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. i know, but i need more specific th...
by GVovkiv
Fri Mar 05, 2021 10:00 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 9869

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 Hui...
by GVovkiv
Fri Mar 05, 2021 5:14 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 9869

Re: graphics tablet

darkfrei wrote: Fri Mar 05, 2021 4:03 pm

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
Well, for huion h430p it returns nothing
by GVovkiv
Fri Mar 05, 2021 4:14 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 9869

Re: graphics tablet

darkfrei wrote: Fri Mar 05, 2021 4:03 pm
GVovkiv wrote: Fri Mar 05, 2021 3:11 pm Soo, apparently love doesnt have support of graphics tablets?
Like detecting if tablet connected or pressure, etc?
Not sure, but
https://love2d.org/wiki/love.touch.getPressure
Well, seems like it only apply for touch-screen, not tablets
by GVovkiv
Fri Mar 05, 2021 3:11 pm
Forum: Support and Development
Topic: graphics tablet
Replies: 14
Views: 9869

graphics tablet

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
by GVovkiv
Thu Feb 04, 2021 5:59 am
Forum: Support and Development
Topic: Noobie just discovered LOVE. Tips for a top down sports game?
Replies: 12
Views: 10908

Re: Noobie just discovered LOVE. Tips for a top down sports game?

togFox wrote: Wed Feb 03, 2021 9:22 pm Just celebrating my game is functional. Not pretty, but functional. :)

In just over a week Love2d has allowed me to make a playable concept of a sports field full of bodies moving around and reacting via Newtonian physics. :)

Appreciate the tips. Onwards and upwards.
Well, good job!
by GVovkiv
Wed Feb 03, 2021 7:06 am
Forum: Support and Development
Topic: How to attach console on Linux Ubuntu?
Replies: 7
Views: 5790

Re: How to attach console on Linux Ubuntu?

Linux Ubuntu So, i know, on Windows you can use conf.lua or --console, but how to do something like this on Ubuntu? There's unfortunately no way to do this. :( However, there are 2 solutions to still see the console! ^^ 1. Running from the terminal. You can open a terminal in the folder avobe where...
by GVovkiv
Mon Feb 01, 2021 9:30 pm
Forum: Support and Development
Topic: How to attach console on Linux Ubuntu?
Replies: 7
Views: 5790

How to attach console on Linux Ubuntu?

Linux Ubuntu
So, i know, on Windows you can use conf.lua or --console, but how to do something like this on Ubuntu?
by GVovkiv
Wed Jan 27, 2021 8:19 am
Forum: Support and Development
Topic: PUSH and URUTORA libraries together
Replies: 3
Views: 5591

Re: PUSH and URUTORA libraries together

because push change position where images draws, but not the actual position you need keep it in mind so if you want, for example, check button with cursor, than you can do something like this: if xm >= (x * s) + xo and xm <= ((x + w) * s) + xo and ym >= (y * yo) and ym <= ((y + h) * s) + yo then re...