Jesse Vincent
7919922036
Move the hid facade out into its own namespace
7 years ago
Jesse Vincent
7e73341772
Move our hid facade into kaleidoscope::hid
7 years ago
Jesse Vincent
c9734385c5
press/releaseKeyRaw -> press/releaseRawKey
7 years ago
Jesse Vincent
4ee9ca4e63
pressConsumer/releaseConsumer -> pressConsumerControl / releaseConsumerControl
...
ditto for SystemControl
7 years ago
Jesse Vincent
f5aaedffd5
add an "isModifierActive" to the hid facade
7 years ago
Jesse Vincent
02695b8cea
Add a facde for KeyboardioHID's *.begin()
7 years ago
Jesse Vincent
8b187366c7
Create an abstraction on top of the KeyboardioHID interface
...
so that user code doesn't need to know anything about it.
(This also paves the way for @wez' EventDispatcher)
7 years ago
Jesse Vincent
178dd0a5f1
Merge pull request #141 from cdisselkoen/update-for-new-Macros-API
...
Update for changes to Kaleidoscope-Macros no longer requiring END
7 years ago
Craig Disselkoen
1cf8d9afdb
Update for changes to Kaleidoscope-Macros no longer requiring END
7 years ago
Jesse Vincent
9434d7b2bf
Update function naming from CamelCase to camelCase,
...
to match what actually happens in the Arduino Universe
7 years ago
Jesse Vincent
cb3a6d78c8
press_key-> pressKey
7 years ago
Jesse Vincent
396ae22a67
release_key->releaseKey
7 years ago
Jesse Vincent
e29e220416
camelCasing of _matrix functions
7 years ago
Jesse Vincent
210287684f
CamelCase of handle_*_key*
7 years ago
Jesse Vincent
2582441523
CamelCase of KeyIsPressed and KeyWasPressed
7 years ago
Jesse Vincent
0f2bae7db7
keyToggledO* camelcasing
7 years ago
Jesse Vincent
3154f7c997
Add "correct" camelCase versions of the keyswitch state macros to ease transition to the new API
...
We'll remove the deprecated versions after the core greps clean
7 years ago
Jesse Vincent
72cd5f7db8
Update to work with new simpler Nulock API
7 years ago
Jesse Vincent
4a9ce76915
Merge pull request #139 from cdisselkoen/for-upstream
...
Fix paths in README.md to match Makefile
7 years ago
Craig Disselkoen
43af3eff08
Fix paths in README.md to match Makefile
7 years ago
Jesse Vincent
8d85120f96
Merge pull request #138 from keyboardio/f/coding-style-markdown
...
doc/CODING_STYLE: Convert the style guide to Markdown
8 years ago
Gergely Nagy
568903b1da
doc/CODING_STYLE: Convert the style guide to Markdown
...
This converts the Style Guide to Markdown. Some small changes were
applied, mostly in the beginning, up until "Local Variables", roughly. After
that, only striked through sections were removed, and the wording was kept.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
6df2e5644a
Merge pull request #136 from algernon/f/compile-time-use
...
Rework Kaleidoscope.use to be a compile-time recursive function
8 years ago
Gergely Nagy
636dfc3ba6
Rework Kaleidoscope.use to be a compile-time recursive function
...
Based on suggestions from Wez Furlong (@wez) in #135 , this replaces the
`Kaleidoscope.use` function with one that does its thing at compile time.
The net result is that we save a considerable amount of code, while still having
all of the benefits, and being 100% backwards compatible, no code needs to
change.
We may want to adjust existing code to use `Kaleidoscope.use` directly, and drop
any trailing NULLs we may have had. But there is no rush to do so.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
5bc7f49dce
dump the body of the arduino api style guide here.
8 years ago
Jesse Vincent
c3ad5a322f
Fix a misspelled tag
8 years ago
Gergely Nagy
c05573ea40
Guard the key_is_pressed/key_was_pressed arguments better
...
Instead of using the argument as-is, which could be misinterpreted as a
reference (at least by linkers), wrap them in parens to make it clear they are
not.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
477c426385
remove the kaleidoscope-builder from the Kaleidoscope core,
...
since it's now in the build tools repo
8 years ago
Gergely Nagy
c20732257b
examples/AppSwitcher: Update to use newest HostOS APIs
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
8c6b8433cc
astyle pass
8 years ago
Jesse Vincent
57ebb17d8f
Revert "switch from one space indent to two space indent before public: and private:"
...
This reverts commit 502bc0b59f
.
Now that we have two space indent, astyle does the right thing
8 years ago
Jesse Vincent
502bc0b59f
switch from one space indent to two space indent before public: and private:
...
This matches what astyle does, so it's one less thing to stress about
8 years ago
Jesse Vincent
9129b8e9a7
Switch up the -libraries order so the local version of a library gets
...
found first
8 years ago
Gergely Nagy
522fcc8c25
doc/CODING_STYLE.html: Fix a small typo
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
e57cfbc0db
remove a bunch of semicolons that the linter says are superfluous
8 years ago
Jesse Vincent
02b144cff3
Switch to cpplint 1.30 from https://pypi.python.org/pypi/cpplint
...
Unlike the upstream google linter, it understands '#pragma once'
8 years ago
Jesse Vincent
37d0f1cb8c
Switch HIDTables.h to #pragma once to satisfy the linter.
...
This _might_ get us in trouble with duplicate definitions in KeyboardioHID
8 years ago
Jesse Vincent
854a7c73b2
Import google cpplint
8 years ago
Jesse Vincent
554b43c2b5
Remove an unneeded ; caught by cpplint.py
8 years ago
Jesse Vincent
4b27f711f9
Strike through windows-specific stuff
8 years ago
Jesse Vincent
cf4886f653
Add a note about access control. Remove a google-specific note
8 years ago
Jesse Vincent
44d95f050e
We use astyle
8 years ago
Jesse Vincent
7cd1eee07d
our guidance on inline functions is a little bit difference because we're targeting embedded devices
8 years ago
Jesse Vincent
02ea090ac7
We use #pragma once
8 years ago
Jesse Vincent
01bfee48cb
GCC extensions are ok
8 years ago
Jesse Vincent
5873b461ac
we don't use std::hash
8 years ago
Jesse Vincent
b0577d241c
Boost does not make sense in this context
8 years ago
Jesse Vincent
30edd7da2f
64 bit portability is a non-goal
8 years ago
Jesse Vincent
ce595a848e
Switch the style guide to HTML, rather than wasting hours butchering
...
Google's nice semantic HTML to Markdown
8 years ago
Jesse Vincent
f7b071d134
Add notes from @obra and @algernon. As yet not integrated
8 years ago