Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 63773 Details for
Bug 93990
games-action/trackballs version bump (1.1)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/1.1.0-settings.patch
1.1.0-settings.patch (text/plain), 970 bytes, created by
Pau Rodriguez
on 2005-07-19 05:30:21 UTC
(
hide
)
Description:
files/1.1.0-settings.patch
Filename:
MIME Type:
Creator:
Pau Rodriguez
Created:
2005-07-19 05:30:21 UTC
Size:
970 bytes
patch
obsolete
>--- trackballs-1.1.0/src/settings.cc 2005-02-27 13:35:51.000000000 +0100 >+++ trackballs-1.1.0-2/src/settings.cc 2005-07-19 13:28:55.000000000 +0200 >@@ -196,14 +196,23 @@ > } > > int Settings::hasJoystick() { >- if(!Settings::settings->joystickIndex) return 0; >- >- if(!joystick) >- joystick = SDL_JoystickOpen(Settings::settings->joystickIndex-1); >- if(!joystick) { >- printf("Warning, failed to open joystick no. %d\n",Settings::settings->joystickIndex-1); >- joystickIndex=0; >- } >+ if (SDL_NumJoysticks() > 0) >+ { >+ joystick=SDL_JoystickOpen(0); >+ if (joystick) >+ { >+ SDL_JoystickEventState(SDL_ENABLE); >+ Settings::settings->joystickIndex = 1; >+ Settings::save(); >+ return 1; >+ } >+ else >+ { >+ printf("Warning, failed to open joystick no. %d\n",Settings::settings->joystickIndex-1); >+ joystickIndex=0; >+ return 0; >+ } >+} > return joystickIndex; > } > void Settings::closeJoystick() { if(joystick) SDL_JoystickClose(joystick); joystick=NULL; }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 93990
: 63773 |
65697