generated from kitswas/CPP-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from franklin654/User_Preferences
Added partial support for key remapping. Thanks @franklin654.
- Loading branch information
Showing
30 changed files
with
1,159 additions
and
49 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
Submodule VGP_Data_Exchange
updated
3 files
+1 −0 | C/GameButtons.h | |
+9 −3 | README.MD | |
+1 −1 | io/github/kitswas/VGP_Data_Exchange/GameButtons.java |
Submodule doxygen-awesome-css
updated
12 files
+22 −18 | README.md | |
+7 −3 | docs/customization.md | |
+44 −5 | docs/extensions.md | |
+6 −3 | docs/tricks.md | |
+21 −1 | doxygen-awesome-tabs.js | |
+197 −58 | doxygen-awesome.css | |
+0 −44 | doxygen-custom/custom.css | |
+1 −1 | doxygen-custom/header.html | |
+117 −0 | img/theme-variants-base.drawio.svg | |
+102 −0 | img/theme-variants-sidebar-only.drawio.svg | |
+0 −250 | img/theme-variants.drawio.svg | |
+4 −0 | include/MyLibrary/example.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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,44 +1,7 @@ | ||
#pragma once | ||
|
||
#include "../../VGP_Data_Exchange/C/Colfer.h" | ||
#include "../../VGP_Data_Exchange/C/GameButtons.h" | ||
#include "../simulation/simulate.hpp" | ||
|
||
#include <map> | ||
|
||
vgp_data_exchange_gamepad_reading parse_gamepad_state(const char *data, size_t len); | ||
bool inject_gamepad_state(vgp_data_exchange_gamepad_reading reading); | ||
|
||
// Map of gamepad buttons to keyboard keys | ||
const std::map<GamepadButtons, WORD> GAMEPAD_BUTTONS = {{GamepadButtons::GamepadButtons_Menu, VK_MENU}, | ||
{GamepadButtons::GamepadButtons_View, VK_TAB}, | ||
{GamepadButtons::GamepadButtons_A, VK_RETURN}, | ||
{GamepadButtons::GamepadButtons_B, VK_ESCAPE}, | ||
{GamepadButtons::GamepadButtons_X, VK_SHIFT}, | ||
{GamepadButtons::GamepadButtons_Y, VK_CONTROL}, | ||
{GamepadButtons::GamepadButtons_DPadUp, VK_UP}, | ||
{GamepadButtons::GamepadButtons_DPadDown, VK_DOWN}, | ||
{GamepadButtons::GamepadButtons_DPadLeft, VK_LEFT}, | ||
{GamepadButtons::GamepadButtons_DPadRight, VK_RIGHT}, | ||
{GamepadButtons::GamepadButtons_LeftShoulder, 'E'}, | ||
{GamepadButtons::GamepadButtons_RightShoulder, VK_SPACE}, | ||
{GamepadButtons::GamepadButtons_LeftThumbstick, VK_PRIOR}, | ||
{GamepadButtons::GamepadButtons_RightThumbstick, VK_NEXT}}; | ||
|
||
enum Thumbstick | ||
{ | ||
LeftThumbstickUp, | ||
LeftThumbstickDown, | ||
LeftThumbstickLeft, | ||
LeftThumbstickRight, | ||
RightThumbstickUp, | ||
RightThumbstickDown, | ||
RightThumbstickLeft, | ||
RightThumbstickRight | ||
}; | ||
|
||
const std::map<Thumbstick, WORD> THUMBSTICK_KEYS = { | ||
{Thumbstick::LeftThumbstickUp, 'W'}, {Thumbstick::LeftThumbstickDown, 'S'}, | ||
{Thumbstick::LeftThumbstickLeft, 'A'}, {Thumbstick::LeftThumbstickRight, 'D'}, | ||
{Thumbstick::RightThumbstickUp, VK_UP}, {Thumbstick::RightThumbstickDown, VK_DOWN}, | ||
{Thumbstick::RightThumbstickLeft, VK_LEFT}, {Thumbstick::RightThumbstickRight, VK_RIGHT}}; |
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.