Code Search for Developers
 
 
  

bjoy.c from Allegro game programming library at Krugle


Show bjoy.c syntax highlighted

/*         ______   ___    ___ 
 *        /\  _  \ /\_ \  /\_ \ 
 *        \ \ \L\ \\//\ \ \//\ \      __     __   _ __   ___ 
 *         \ \  __ \ \ \ \  \ \ \   /'__`\ /'_ `\/\`'__\/ __`\
 *          \ \ \/\ \ \_\ \_ \_\ \_/\  __//\ \L\ \ \ \//\ \L\ \
 *           \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
 *            \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
 *                                           /\____/
 *                                           \_/__/
 *
 *      Joystick driver for BeOS.
 *
 *      By Angelo Mottola.
 *
 *      See readme.txt for copyright information.
 */

#include "allegro.h"
#include "allegro/internal/aintern.h"
#include "allegro/platform/aintbeos.h"

#ifndef ALLEGRO_BEOS
#error something is wrong with the makefile
#endif

AL_JOYSTICK_DRIVER joystick_beos =
{
   AL_JOYSTICK_BEOS,        // int  id; 
   al_empty_string,         // AL_CONST char *name; 
   al_empty_string,         // AL_CONST char *desc; 
   "BeOS joystick",      // AL_CONST char *ascii_name;
   be_joy_init,          // AL_METHOD(int, init, (void));
   be_joy_exit,          // AL_METHOD(void, exit, (void));
   be_joy_poll,          // AL_METHOD(int, poll, (void));
   NULL,                 // AL_METHOD(int, save_data, (void));
   NULL,                 // AL_METHOD(int, load_data, (void));
   NULL,                 // AL_METHOD(AL_CONST char *, calibrate_name, (int n));
   NULL                  // AL_METHOD(int, calibrate, (int n));
};





See more files for this project here

Allegro game programming library

Allegro is a cross-platform library intended for use in computer games and other types of multimedia programming.

Project homepage: http://sourceforge.net/projects/alleg
Programming language(s): Assembly,C,Shell Script
License: other

  baccel.cpp
  bclasses.cpp
  bdispsw.cpp
  bgfx.c
  bgfxapi.cpp
  bgfxdrv.c
  bjoy.c
  bjoyapi.cpp
  bjoydrv.c
  bkey.c
  bkeyapi.cpp
  bkeydrv.c
  bmidi.c
  bmidiapi.cpp
  bmididrv.c
  bmousapi.cpp
  bmousdrv.c
  bmouse.c
  bsnd.c
  bsndapi.cpp
  bsnddrv.c
  bswitch.s
  bsysapi.cpp
  bsysdrv.c
  bsystem.c
  btimeapi.cpp
  btimedrv.c
  btimer.c