Ticket #4742: patch.diff
File patch.diff, 1.9 KB (added by , 15 years ago) |
---|
-
src/kits/device/Joystick.cpp
30 30 va_end(ap); 31 31 fputs(buf, BJoystick::sLogFile); fflush(BJoystick::sLogFile); 32 32 } 33 33 34 # define LOG_ERR(text...) LOG(text) 34 FILE *BJoystick::sLogFile = NULL; 35 36 static FILE *sLogFile = NULL; 37 35 38 #else 36 39 # define LOG(text...) 37 40 # define LOG_ERR(text...) fprintf(stderr, text) … … 361 364 return B_ERROR; 362 365 } 363 366 367 368 void BJoystick::_ReservedJoystick1() {} 369 void BJoystick::_ReservedJoystick2() {} 370 void BJoystick::_ReservedJoystick3() {} 371 status_t BJoystick::_Reserved_Joystick_4(void*, ...) { return B_ERROR; } 372 status_t BJoystick::_Reserved_Joystick_5(void*, ...) { return B_ERROR; } 373 status_t BJoystick::_Reserved_Joystick_6(void*, ...) { return B_ERROR; } -
headers/os/device/Joystick.h
9 9 #include <OS.h> 10 10 #include <SupportDefs.h> 11 11 12 #if DEBUG13 #include <stdio.h>14 #endif15 12 16 13 class BList; 17 14 class BString; … … 80 77 status_t GatherEnhanced_info(const entry_ref* ref = NULL); 81 78 status_t SaveConfig(const entry_ref* ref = NULL); 82 79 80 81 void _ReservedJoystick1(); 82 virtual void _ReservedJoystick2(); 83 virtual void _ReservedJoystick3(); 84 83 85 bool fBeBoxMode; 84 86 bool fReservedBool; 85 87 int ffd; 86 88 BList* fDevices; 87 89 _joystick_info* fJoystickInfo; 88 90 char* fDevName; 89 #if DEBUG 90 public: 91 static FILE* sLogFile; 92 #endif 91 92 virtual status_t _Reserved_Joystick_4(void *, ...); 93 virtual status_t _Reserved_Joystick_5(void *, ...); 94 virtual status_t _Reserved_Joystick_6(void *, ...); 95 uint32 _reserved_Joystick_[10]; 93 96 }; 94 97 95 98 #endif // _JOYSTICK_H