summaryrefslogtreecommitdiffstats
path: root/src/input_common/gcadapter/gc_adapter.h
diff options
context:
space:
mode:
authorAmeer <aj662@drexel.edu>2020-06-21 21:31:57 +0200
committerAmeer <aj662@drexel.edu>2020-06-21 21:31:57 +0200
commitc94583d867fd909d8731ba50e085352aae0e6885 (patch)
tree9c691c1382d3317f45ad09cb43a93f9223fe379b /src/input_common/gcadapter/gc_adapter.h
parentCleanup after linter (diff)
downloadyuzu-c94583d867fd909d8731ba50e085352aae0e6885.tar
yuzu-c94583d867fd909d8731ba50e085352aae0e6885.tar.gz
yuzu-c94583d867fd909d8731ba50e085352aae0e6885.tar.bz2
yuzu-c94583d867fd909d8731ba50e085352aae0e6885.tar.lz
yuzu-c94583d867fd909d8731ba50e085352aae0e6885.tar.xz
yuzu-c94583d867fd909d8731ba50e085352aae0e6885.tar.zst
yuzu-c94583d867fd909d8731ba50e085352aae0e6885.zip
Diffstat (limited to 'src/input_common/gcadapter/gc_adapter.h')
-rw-r--r--src/input_common/gcadapter/gc_adapter.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.h b/src/input_common/gcadapter/gc_adapter.h
index 9b02d1382..05ee73c65 100644
--- a/src/input_common/gcadapter/gc_adapter.h
+++ b/src/input_common/gcadapter/gc_adapter.h
@@ -1,11 +1,14 @@
+// Copyright 2014 Dolphin Emulator Project
+// Licensed under GPLv2+
+// Refer to the license.txt file included.
+
#pragma once
#include <algorithm>
-#include <libusb.h>
-#include <mutex>
#include <functional>
+#include <mutex>
+#include <libusb.h>
#include "common/common_types.h"
-
enum {
PAD_USE_ORIGIN = 0x0080,
PAD_GET_ORIGIN = 0x2000,
@@ -61,13 +64,8 @@ struct GCState {
std::unordered_map<int, u16> axes;
};
-
namespace GCAdapter {
-enum ControllerTypes {
- CONTROLLER_NONE = 0,
- CONTROLLER_WIRED = 1,
- CONTROLLER_WIRELESS = 2
-};
+enum ControllerTypes { CONTROLLER_NONE = 0, CONTROLLER_WIRED = 1, CONTROLLER_WIRELESS = 2 };
enum {
NO_ADAPTER_DETECTED = 0,