Skip to content

Commit

Permalink
remove section headers
Browse files Browse the repository at this point in the history
they're more of a distraction than a help
  • Loading branch information
tesselode committed Jul 4, 2018
1 parent 2cbde05 commit 78285c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
return {
std = 'lua51+love',
ignore = {'212'},
}
10 changes: 0 additions & 10 deletions baton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ local baton = {
]]
}

-- utility functions --

local function parseSource(source)
return source:match '(.+):(.+)'
end
Expand All @@ -41,8 +39,6 @@ local function parseHat(value)
return value:match '(%d)(.+)'
end

-- source functions --

local sf = {kbm = {}, joy = {}}

function sf.kbm.key(key)
Expand Down Expand Up @@ -81,8 +77,6 @@ function sf.joy.hat(joystick, value)
return joystick:getHat(hat) == direction and 1 or 0
end

-- player class - internal functions --

local Player = {}
Player.__index = Player

Expand Down Expand Up @@ -219,8 +213,6 @@ function Player:_updatePairs()
end
end

-- player class - public API --

function Player:update()
self:_setActiveDevice()
self:_updateControls()
Expand Down Expand Up @@ -281,8 +273,6 @@ function Player:getActiveDevice()
return self._activeDevice
end

-- baton functions --

function baton.new(config)
local player = setmetatable({}, Player)
player:_init(config)
Expand Down

0 comments on commit 78285c9

Please sign in to comment.