## Search found 7 matches

Thu Aug 13, 2015 2:02 am
Forum: General
Topic: LOVE users map
Replies: 182
Views: 46566

### Re: LOVE users map

Helsinki, Finland
Sat Apr 04, 2015 3:55 pm
Forum: General
Topic: Joystick input correction code
Replies: 6
Views: 4787

### Re: Joystick input correction code

I meant to post this simplified code snippet earlier: local inDZ, outDZ = 0.25, 0.1 --deadzones function correctStick ( x, y ) --raw x, y axis data from stick local len = math.sqrt ( x * x + y * y ) if len <= inDZ then x, y = 0, 0 elseif len + outDZ >= 1 then x, y = x / len, y / len else len = ( len...
Mon Mar 30, 2015 4:31 am
Forum: General
Topic: Joystick input correction code
Replies: 6
Views: 4787

### Re: Useful joystick input code

Yes, when you make a circle on your controller stick, it would make sense to expect the input to make at least roughly a circle too - which it doesn't. Even if a brand new controller was able to make a perfect square with it's circular movement the raw input data would still have to be processed a l...
Sat Mar 28, 2015 8:20 pm
Forum: General
Topic: Joystick input correction code
Replies: 6
Views: 4787

### Re: Useful joystick input code

Oh it works, I just mean that without the code, the "circle" you make is not a circle. You can see what the shape would be if you make a full circle with the stick and look at what the end of the purple line traces. I was just being redundant with the last paragraph... I don't know why. EDIT: I adde...
Sat Mar 28, 2015 1:31 pm
Forum: General
Topic: Joystick input correction code
Replies: 6
Views: 4787

### Joystick input correction code

The input from the sticks isn't as accurate as the uninitiated might think. This program demonstrates and solves the inaccuracy. function love.load() deadzone = 0.25 -- adjustable, my pretty worn controller needs to have this as high as 0.3 love.graphics.setBackgroundColor(30, 30, 30) joystick = lov...
Fri Mar 27, 2015 6:30 am
Forum: General
Topic: LÖVE 0.9.2 Released
Replies: 59
Views: 55731

### Re: LÖVE 0.9.2 Released

This new joystick thing inspired me to recommission my old xbox 360 controller. I put together this little program to study the new module: http://i.imgur.com/c1OuP0g.png Currently I'm learning how to handle stick input the right way... has someone perhaps recently worked on that? EDIT: Ok, so I fig...
Sun Dec 15, 2013 4:47 am
Forum: General
Topic: Avatars: OBEY!
Replies: 741
Views: 353891

### Re: Avatars: OBEY!

I'll enforce some obedience with my sword!