-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
704 additions
and
679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
BasedOnStyle: Chromium | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
ColumnLimit: 95 | ||
UseTab: Never | ||
IndentAccessModifiers: false | ||
IndentCaseLabels: false | ||
AccessModifierOffset: -4 | ||
BreakStringLiterals: false | ||
PointerAlignment: Right | ||
ReferenceAlignment: Left | ||
BreakBeforeBraces: Attach | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
# BreakAfterReturnType: Automatic | ||
BreakConstructorInitializers: AfterColon | ||
AlignAfterOpenBracket: AlwaysBreak | ||
Cpp11BracedListStyle: true | ||
|
||
IncludeCategories: | ||
- Regex: '^<windowsx?.h>' | ||
Priority: 1 | ||
- Regex: '^<ext/.*\.h>' | ||
Priority: 3 | ||
- Regex: '^"auto/.*\.h"' | ||
Priority: 5 | ||
- Regex: '^<.*\.h>' | ||
Priority: 2 | ||
- Regex: '^<.*' | ||
Priority: 3 | ||
- Regex: '.*' | ||
Priority: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Code format check | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
clang-format: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
- name: Prepare newer clang-format | ||
run: | | ||
brew install clang-format | ||
brew link clang-format --force | ||
- name: Show clang-format version | ||
run: clang-format --version | ||
- name: Check code format | ||
run: make fmt-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
#ifndef KEYBOARD_HPP_ | ||
#define KEYBOARD_HPP_ | ||
|
||
enum class Keycode { | ||
Shift, | ||
Count | ||
}; | ||
enum class Keycode { Shift, Count }; | ||
|
||
namespace Keyboard { | ||
bool IsKeyPressed(Keycode code); | ||
void OnKeyDown(Keycode code); | ||
void OnKeyUp(Keycode code); | ||
void ResetAllState(); | ||
} | ||
bool IsKeyPressed(Keycode code); | ||
void OnKeyDown(Keycode code); | ||
void OnKeyUp(Keycode code); | ||
void ResetAllState(); | ||
} // namespace Keyboard | ||
|
||
#endif // KEYBOARD_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.