mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-25 11:34:55 +00:00
clang
This commit is contained in:
parent
f4653d40cf
commit
32edcd4301
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include "common/types.h"
|
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
|
#include "common/types.h"
|
||||||
#include "input/controller.h"
|
#include "input/controller.h"
|
||||||
#include "input_mouse.h"
|
#include "input_mouse.h"
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ MouseMode mouse_mode = MouseMode::Off;
|
|||||||
// Switches mouse to a set mode or turns mouse emulation off if it was already in that mode.
|
// Switches mouse to a set mode or turns mouse emulation off if it was already in that mode.
|
||||||
// Returns whether the mode is turned on.
|
// Returns whether the mode is turned on.
|
||||||
bool ToggleMouseModeTo(MouseMode m) {
|
bool ToggleMouseModeTo(MouseMode m) {
|
||||||
if(mouse_mode == m) {
|
if (mouse_mode == m) {
|
||||||
mouse_mode = MouseMode::Off;
|
mouse_mode = MouseMode::Off;
|
||||||
} else {
|
} else {
|
||||||
mouse_mode = m;
|
mouse_mode = m;
|
||||||
@ -85,8 +85,7 @@ void EmulateGyro(GameController* controller, u32 interval) {
|
|||||||
|
|
||||||
Uint32 MousePolling(void* param, Uint32 id, Uint32 interval) {
|
Uint32 MousePolling(void* param, Uint32 id, Uint32 interval) {
|
||||||
auto* controller = (GameController*)param;
|
auto* controller = (GameController*)param;
|
||||||
switch (mouse_mode)
|
switch (mouse_mode) {
|
||||||
{
|
|
||||||
case MouseMode::Joystick:
|
case MouseMode::Joystick:
|
||||||
EmulateJoystick(controller, interval);
|
EmulateJoystick(controller, interval);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user