haiku/headers/os
Michael Lotz ab1763688f * Replace the fixed size extended_joystick structure with a variably sized one
inside BJoystick.
* Add joystick_module_info flag to communicate support for variably sized reads.
* The variably sized data structure is set up to describe either the actual
  amount of data, when variably sized reads are supported by the driver, or it
  is set up so that it exactly matches the data layout of the extended_joystick
  structure. This allows us to support both as input data, while only needing to
  care about a single format inside BJoystick. Convenience pointers allow the
  data to be retrieved without additional overhead or extra logic.
* Add some sanity checks and ensure some boundaries when dealing reading data
  from the variably sized structure (as there might not be any buttons, hats,
  axis at all now).
* Ensure that the extended_joystick structure doesn't change in size due to
  padding by making it _PACKED (it wasn't padded though).

This is still supposed to work exactly as before. However, it opens up the
possibility to actually support arbitrary controllers with arbitrary axis, hat
and button counts. It therefore allows to actually deliver what the BJoystick
API was designed to handle all along.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-03 18:33:43 +00:00
..
add-ons - Partial downloaded messages are now opened by Mail and not by the mail daemon. Mail request the body fetch and get notified when the daemon is done. During this time the Mail window title is showing "Downloading: subject". This fixes #7256. 2011-03-03 09:05:04 +00:00
app Added another GetInfo() variant with which one can retrieve the count and 2011-02-07 20:10:14 +00:00
arch Of course, using warnings as placeholders for code to write works fine until it's included when building an arch with -Werror... 2009-07-22 18:14:32 +00:00
be_apps
bluetooth Fix #6373, second try 2010-08-19 15:29:02 +00:00
device * Replace the fixed size extended_joystick structure with a variably sized one 2011-06-03 18:33:43 +00:00
drivers Make the signature argument to get_table() const. Should fix the GCC4 build. 2011-05-11 09:05:43 +00:00
game * More header cleanup, continuing korli's work. 2010-04-13 09:48:02 +00:00
interface * Followed Ingo's suggestion, and added a BWindow::Layout() method. 2011-05-27 22:21:59 +00:00
kernel Apply patch from augiedoggie for #6258 which adds Athlon Phenom II's to the CPU 2011-01-03 04:10:56 +00:00
locale * Added BLanguage::GetIcon(), and BLocaleRoster::GetFlagIconForLanguage(). The 2011-05-25 17:09:30 +00:00
mail Fix build. 2011-05-05 20:16:48 +00:00
media * Change the signature of the Writer plugins setup methods such 2010-10-20 21:36:23 +00:00
midi Found a forgotten B_BEOS_*_DIRECTORY. 2009-09-18 17:40:46 +00:00
midi2
net * Reverted back to the original version of BNetworkAddress::SetAddress(); 2011-02-18 21:09:21 +00:00
opengl Added a GetGLProcAddress() method to BGLView. 2010-09-08 10:01:37 +00:00
package * fix value of all enumeration types that are stored as part of a 2011-02-15 18:33:19 +00:00
storage Add app filename localization catalog entry support to BAppFileInfo, registrar and mimeset. Need help to understand why the build-version of UpdateMimeInfoThread.cpp does not compile with the added code, currently commented out. Sorry about the arbitrary B_MIME_TYPE_LENGTH*3. Advice and review welcome. 2011-03-07 15:14:46 +00:00
support Add BString::IsEmpty() method. 2011-04-12 18:10:02 +00:00
translation * Obviously, the GraphicsDefs.h header is needed as well. 2009-08-27 15:45:42 +00:00
AppKit.h
Be.h Patch by Jorma Karvonen: Add LocaleKit.h header and also add it to Be.h. Thanks! 2010-05-16 16:07:55 +00:00
BeBuild.h Update trunk version to post-Alpha3 since the latter has now been branched. 2011-05-16 21:53:38 +00:00
DeviceKit.h
GameKit.h
InterfaceKit.h
KernelKit.h
LocaleKit.h One more monster commit (sorry ...) concerning the Locale Kit: 2010-10-24 12:57:55 +00:00
MailKit.h
MediaKit.h
MidiKit.h
NetKit.h
NetworkKit.h Added the new headers to the NetworkKit.h all-in-one header. 2010-10-27 14:16:19 +00:00
OpenGLKit.h
StorageKit.h
SupportKit.h
TranslationKit.h