* Actually implement the relevant parts of BJoystick, i.e. reading the joystick

info and values. Inspired by and in parts based on the patch by caz_haiku in
  ticket #7429 (though rewritten completely due to the other changes). Thanks
  for the pointers!
* Clean up the mixup of internal joystick info and the one from
  joystick_driver.h so that BJoystick and the drivers talk about the same
  structures.
* Extensive coding style cleanup, simplifications, NULL checks, early returns,
  std::nothrow allocations, include sorting, argument naming, ... that kind of
  stuff.
* Added some TODO notes for remaining stuff.
* Automatic (and manual) whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41849 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2011-05-31 02:05:39 +00:00
parent 331a968c65
commit ef13dbda92
5 changed files with 299 additions and 131 deletions
+2 -2
View File
@@ -87,10 +87,10 @@ friend class _BJoystickTweaker;
bool fBeBoxMode;
bool fReservedBool;
int ffd;
int fFD;
BList* fDevices;
_joystick_info* fJoystickInfo;
char* fDevName;
BList* fExtendedJoystick;
uint32 _reserved_Joystick_[10];
};