mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
Fix naming convention
This commit is contained in:
parent
1c2adacaf1
commit
ec2da4eb01
5 changed files with 5 additions and 6 deletions
|
@ -15,8 +15,7 @@ struct InputMappings {
|
|||
}
|
||||
|
||||
void setMapping(Scancode scancode, u32 key) { container[scancode] = key; }
|
||||
|
||||
static InputMappings DefaultKeyboardMappings();
|
||||
static InputMappings defaultKeyboardMappings();
|
||||
|
||||
private:
|
||||
Container container;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include "cheats.hpp"
|
||||
#include "input_mappings.hpp"
|
||||
|
||||
MainWindow::MainWindow(QApplication* app, QWidget* parent) : QMainWindow(parent), keyboardMappings(InputMappings::DefaultKeyboardMappings()), screen(this) {
|
||||
MainWindow::MainWindow(QApplication* app, QWidget* parent) : QMainWindow(parent), keyboardMappings(InputMappings::defaultKeyboardMappings()), screen(this) {
|
||||
setWindowTitle("Alber");
|
||||
// Enable drop events for loading ROMs
|
||||
setAcceptDrops(true);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <QKeyEvent>
|
||||
|
||||
InputMappings InputMappings::DefaultKeyboardMappings() {
|
||||
InputMappings InputMappings::defaultKeyboardMappings() {
|
||||
InputMappings mappings;
|
||||
mappings.setMapping(Qt::Key_L, HID::Keys::A);
|
||||
mappings.setMapping(Qt::Key_K, HID::Keys::B);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <glad/gl.h>
|
||||
|
||||
FrontendSDL::FrontendSDL() : keyboardMappings(InputMappings::DefaultKeyboardMappings()) {
|
||||
FrontendSDL::FrontendSDL() : keyboardMappings(InputMappings::defaultKeyboardMappings()) {
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) < 0) {
|
||||
Helpers::panic("Failed to initialize SDL2");
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <SDL.h>
|
||||
|
||||
InputMappings InputMappings::DefaultKeyboardMappings() {
|
||||
InputMappings InputMappings::defaultKeyboardMappings() {
|
||||
InputMappings mappings;
|
||||
mappings.setMapping(SDLK_l, HID::Keys::A);
|
||||
mappings.setMapping(SDLK_k, HID::Keys::B);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue