onepad: properly indent comments

Clang-format doesn't like the double *
This commit is contained in:
Gregory Hainaut 2017-04-11 19:02:31 +02:00
parent 9c7e9cc6f2
commit 5c537fdbe3
2 changed files with 24 additions and 23 deletions

View File

@ -35,31 +35,32 @@ public:
GamePad(const GamePad &); // copy constructor GamePad(const GamePad &); // copy constructor
GamePad &operator=(const GamePad &); // assignment GamePad &operator=(const GamePad &); // assignment
/** /*
* Find every interesting devices and create right structure for them(depend on backend) * Find every interesting devices and create right structure for them(depend on backend)
**/ */
static void EnumerateGamePads(std::vector<std::unique_ptr<GamePad>> &vgamePad); static void EnumerateGamePads(std::vector<std::unique_ptr<GamePad>> &vgamePad);
static void UpdateReleaseState(); static void UpdateReleaseState();
/**
* Update state of every attached devices /*
**/ * Update state of every attached devices
*/
static void UpdateGamePadState(); static void UpdateGamePadState();
/** /*
* Causes devices to rumble * Causes devices to rumble
* Rumble will differ according to type which is either 0(small motor) or 1(big motor) * Rumble will differ according to type which is either 0(small motor) or 1(big motor)
**/ */
virtual void Rumble(int type, int pad) { return; } virtual void Rumble(int type, int pad) { return; }
/** /*
* Safely dispatch to the Rumble method above * Safely dispatch to the Rumble method above
**/ */
static void DoRumble(int type, int pad); static void DoRumble(int type, int pad);
virtual bool Init(int id) { return false; } // opens a handle and gets information virtual bool Init(int id) { return false; } // opens a handle and gets information
/** /*
* Used for GUI checkbox to give feedback to the user * Used for GUI checkbox to give feedback to the user
**/ */
virtual bool TestForce(float strength = 0.6) { return false; } virtual bool TestForce(float strength = 0.6) { return false; }
virtual bool PollButtons(u32 &pkey) { return false; } virtual bool PollButtons(u32 &pkey) { return false; }

View File

@ -96,13 +96,13 @@ void JoystickInfo::Rumble(int type, int pad)
if (first) { // If done multiple times, device memory will be filled if (first) { // If done multiple times, device memory will be filled
first = 0; first = 0;
GenerateDefaultEffect(); GenerateDefaultEffect();
/** Sine and triangle are quite probably the best, don't change that lightly and if you do /* Sine and triangle are quite probably the best, don't change that lightly and if you do
* keep effects ordered by type * keep effects ordered by type
**/ */
/** Effect for small motor **/ /* Effect for small motor */
/** Sine seems to be the only effect making little motor from DS3/4 react /* Sine seems to be the only effect making little motor from DS3/4 react
* Intensity has pretty much no effect either(which is coherent with what is explain in hid_sony driver * Intensity has pretty much no effect either(which is coherent with what is explain in hid_sony driver
**/ */
effects[0].type = SDL_HAPTIC_SINE; effects[0].type = SDL_HAPTIC_SINE;
effects_id[0] = SDL_HapticNewEffect(haptic, &effects[0]); effects_id[0] = SDL_HapticNewEffect(haptic, &effects[0]);
if (effects_id[0] < 0) { if (effects_id[0] < 0) {