[Commits] SDL: Removed button logging message

libsdl.org revision control commits-owner at libsdl.org
Fri Sep 21 09:41:31 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/5231eb2ac4fd
changeset: 12198:5231eb2ac4fd
user:      Sam Lantinga <slouken at libsdl.org>
date:      Fri Sep 21 09:41:21 2018 -0700
description:
Removed button logging message

diffstat:

 src/joystick/hidapi/SDL_hidapi_xbox360.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r a72347375b36 -r 5231eb2ac4fd src/joystick/hidapi/SDL_hidapi_xbox360.c
--- a/src/joystick/hidapi/SDL_hidapi_xbox360.c	Thu Sep 20 15:55:52 2018 -0700
+++ b/src/joystick/hidapi/SDL_hidapi_xbox360.c	Fri Sep 21 09:41:21 2018 -0700
@@ -485,7 +485,6 @@
         
         hr = __x_ABI_CWindows_CGaming_CInput_CIGamepad_GetCurrentReading(ctx->gamepad, &state);
         if (SUCCEEDED(hr)) {
-            SDL_Log("Windows.Gaming.Input buttons: 0x%x\n", state.Buttons);
             SDL_PrivateJoystickButton(joystick, SDL_CONTROLLER_BUTTON_GUIDE, (state.Buttons & 0x40000000) ? SDL_PRESSED : SDL_RELEASED);
             SDL_PrivateJoystickAxis(joystick, SDL_CONTROLLER_AXIS_TRIGGERLEFT, ((int)(state.LeftTrigger * SDL_MAX_UINT16)) - 32768);
             SDL_PrivateJoystickAxis(joystick, SDL_CONTROLLER_AXIS_TRIGGERRIGHT, ((int)(state.RightTrigger * SDL_MAX_UINT16)) - 32768);


More information about the commits mailing list