Page 4 of 4

Re: TLbind - making professional control schemes easy

Posted: Wed Feb 20, 2013 8:36 am
by Taehl
During my year of being without Internet, I've upgraded TLbind! It features general improvements, a convenience TLbind.giveInstance function for making new control instances, and the main new feature is mouse support. Mouse buttons are handled as digital input and mouse position as an analogue input (-1 to 1 in screen space). Documentation and download links are the same, TLbind and link respectively.
MiniDemonic wrote:the "corner" problems was due to the TLbind.deadzone setting. Changed the deadzone to 0 and now it works good enough, although the aiming still got "corners" but they are barely noticeable.
I highly recommend you don't get rid of the deadzone, or else your game will likely have control drift on many gamepads. To get rid of "corners" (if I understand you), use bind.maps to make an analogue pair circular instead of square.
gfreak wrote:any plans to support multiple controls per button?
Nope.
gfreak wrote:and any plans to add left and right mouse button?
This update adds all mouse buttons (and wheel) as well as mouse position.

Re: TLbind - making professional control schemes easy

Posted: Thu Apr 18, 2013 8:36 am
by Taehl
I've updated TLbind to 1.3, which replaces the old deadzone behavior with super-smooth scaled radial deadzones. This removes the "axis lock" problem, as well as the "0 to deadzone" jump. Since this also normalizes the input, binds.deadzoneAxes has replaced binds.circleAnalogue.

So this problem:
MiniDemonic wrote:the "corner" problems was due to the TLbind.deadzone setting. Changed the deadzone to 0 and now it works good enough, although the aiming still got "corners" but they are barely noticeable.
... is now fixed.

Re: TLbind 1.3 - professional controls made easy (now w/ mou

Posted: Mon Jun 24, 2013 7:55 pm
by immakinggames
Can anybody tell me why I can't change the deadzone of my 360 controller with this code?

Code: Select all

TLbind,control = love.filesystem.load("TLbind.lua")()

TLbind.deadzone = .3 --any number here changes nothing :(
	
	TLbind.joyHats[1] =  {{"left","right","up","down"}} 
	TLbind.joyAxes[1] =  {"Horizontal", "Vertical"} 
	
	TLbind.maps = {
                ["Horizontal"]  = {"left", "right"},
                ["Vertical"]    = {"up", "down"}
        }

	TLbind.deadzoneAxes = { {"Horizontal", "Vertical"} }

Re: TLbind 1.3 - professional controls made easy (now w/ mou

Posted: Wed Jul 03, 2013 6:18 am
by immakinggames
hate to bump, but it has been over a week and this is driving me crazy

Re: TLbind 1.3 - professional controls made easy (now w/ mou

Posted: Mon Sep 02, 2013 9:02 pm
by raidho36
Shameless self-advertising in competitors' thread:

You can try the COCK library. It's a little harder to use, but works a charm.

http://love2d.org/forums/viewtopic.php?f=5&t=40089

Re: TLbind 1.3 - professional controls made easy (now w/ mou

Posted: Mon Sep 02, 2013 11:09 pm
by Kyle
raidho36 wrote:Shameless self-advertising in competitors' thread:

You can try the COCK library. It's a little harder to use, but works a charm.

http://love2d.org/forums/viewtopic.php?f=5&t=40089
raidho36, stop trying to make COCK happen. It's not going to happen.

Re: TLbind 1.3 - professional controls made easy (now w/ mou

Posted: Thu Sep 05, 2013 6:04 pm
by bunny_
Hello, first of all thank you for making such an useful thing, it makes control stuff so simple :awesome:
I just wanted to point out a bug in the latest (1.3) version:

The controls are reset in line 62

Code: Select all

for k,v in pairs(control) do if type(v)~="table" then control[k] = false end end
But it used to clear only booleans in an older version I had

Code: Select all

for k,v in pairs(hold) do if type(v)=="boolean" then hold[k] = nil end end
So now it turns anything to 'false'! Including the controlPressed and controlReleased functions you're supposed to be able to assign. It's easy to fix, but I thought I should point it out.

Re: TLbind 1.3 - professional controls made easy (now w/ mouse!)

Posted: Tue May 04, 2021 11:00 pm
by togFox
I apologise for the necro-bump but this TLbind is on the official wiki and the download (drop box is no longer available) so I'd like to know how to best archive the wiki page, or update the wiki page if a github is known

+

are there other keybind libraries ppl can recommend for my own project?