Code Search for Developers
 
 
  

bmouse.c from Allegro game programming library at Krugle


Show bmouse.c syntax highlighted

/*         ______   ___    ___ 
 *        /\  _  \ /\_ \  /\_ \ 
 *        \ \ \L\ \\//\ \ \//\ \      __     __   _ __   ___ 
 *         \ \  __ \ \ \ \  \ \ \   /'__`\ /'_ `\/\`'__\/ __`\
 *          \ \ \/\ \ \_\ \_ \_\ \_/\  __//\ \L\ \ \ \//\ \L\ \
 *           \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
 *            \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
 *                                           /\____/
 *                                           \_/__/
 *
 *      Stuff for BeOS.
 *
 *      By Jason Wilkins.
 *
 *      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                



MOUSE_DRIVER mouse_beos = {
   MOUSE_BEOS,		// int id;
   al_empty_string,	// char *name;
   al_empty_string,	// char *desc;
   "Mouse",		// char *ascii_name;
   be_mouse_init,	// AL_METHOD(int, init, (void));
   be_mouse_exit,	// AL_METHOD(void, exit, (void));
   NULL,		// AL_METHOD(void, poll, (void));
   NULL,		// AL_METHOD(void, timer_poll, (void));
   be_mouse_position,	// AL_METHOD(void, position, (int x, int y));
   be_mouse_set_range,	// AL_METHOD(void, set_range, (int x1, int y1, int x2, int y2));
   be_mouse_set_speed,	// AL_METHOD(void, set_speed, (int xspeed, int yspeed));
   be_mouse_get_mickeys,// AL_METHOD(void, get_mickeys, (int *mickeyx, int *mickeyy));
   NULL                 // AL_METHOD(int,  analyse_data, (const char *buffer, int size));
};




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