Commit graph

16 commits

Author SHA1 Message Date
JetSetIlly
8f9d9a19ba updated golangci-lint to 1.39.0
scopelint replaced by exportloopref
2021-03-26 09:37:19 +00:00
JetSetIlly
766700eb39 icons indicating switched controllers
added some icons to debugging screen. more will be added

embedded fontawesome free webfonts and a minimal Gopher2600-Icons font
that contains the controller images

bumped minimal go version to 1.16 to support the new embed directive
2021-03-18 18:38:56 +00:00
JetSetIlly
c3cb43f051 left/right triggers control paddle
moved some gamepad analogue axis code from sdlimgui/service to
userinput/handle
2021-03-09 22:37:08 +00:00
JetSetIlly
156534a3fd added userinput package
debugger and playmode refer to userinput package rather than the common
code being in the playmode package

GUI events are now userinput events

more versatile handling of EventData in controller package. parsing of
EventData is handled by the controller types as required. added
EventDataPlayback type to ports package to help distinguish source of
data.

EventDataStick used to specify stick data value. used to help
distinguish between setting a stick direction and toggle a stick
direction. the latter case is useful for (physical) gamepad input and
the former for input from a keyboard.

Gamepad analogue stick can be used for paddle input. PaddleFire removed
and Fire used instead.

version number of playback file increased to 1.1. version detection of
recorder.IsPlaybackFile() improved.
2021-03-09 22:37:08 +00:00
JetSetIlly
1085170c97 disabled govet/fieldalignment in linter
golangci-lint v1.38 replaced maligned with this new linter. I'm not too
bothered about aligned structs except in very limited cases so it's
better to run this manually when those structs change.
2021-03-03 15:15:39 +00:00
JetSetIlly
e3eb439cf8 tidy up of television package 2020-10-21 16:19:57 +01:00
JetSetIlly
1cdb19562e error values checked (golangci-lint -E errcheck)
error checked on Close() of writable file

fixed disassembly sanity check
2020-10-18 10:59:19 +01:00
JetSetIlly
e5e1cd7b0a removed use of os.Exit() and log.Fatalf after registering a deferred function
gocritic linter exitAfterDefer check
2020-10-16 18:52:41 +01:00
JetSetIlly
31374965e9 enable all govet linting checks (except composite and shadow) 2020-10-16 16:55:07 +01:00
JetSetIlly
9e159b97d8 added more linters to golangci-lint config
godot --fix has been run to make sure all comments end in a full-stop

specified nolint directive to apply to specific linter
2020-10-16 16:31:07 +01:00
JetSetIlly
b7db6b9b44 ran "gofmt -s" to simplify code (golangci-lint -E gofmt) 2020-10-16 16:01:27 +01:00
JetSetIlly
fca3c2120a fixed golint/stylecheck errors (golangci-lint -E golint -E stylecheck) 2020-10-16 15:48:52 +01:00
JetSetIlly
7b624b5506 removed some staticcheck errors (golangci-lint -E staticcheck)
supercharger tap window will now set tape counter (revealed by
staticcheck)
2020-10-16 14:50:23 +01:00
JetSetIlly
7c1409d474 updated for UK spelling (golangci-lint -E misspell)
exception for color, colors, and coloring in golangcg-lint config file
2020-10-16 13:00:33 +01:00
JetSetIlly
f4b069e544 Makefile vet target removed and govet activated in golangci-lint
disabled "composite" check for govet
2020-10-16 12:52:30 +01:00
JetSetIlly
f30708d0d2 corrected style flaws (golangci-lint -E gocritic)
patch boundaries fixed in dpc mapper (as a result of lint)

added .golangci.yml configuration file

updated Makefile
2020-10-16 12:20:16 +01:00