Súbor: [Platon] / games / _shared / mouse.h (stiahnutie)
Revízia 1.4, Tue Apr 6 09:54:16 2004 UTC (20 years, 10 months ago) by nepto
Zmeny od 1.3: +11 -3
[lines]
Headers update:
- switch to standard/classic Platon SDG source header
- bumped copyright year to 2004
- changelog dates reformatted to new format YYYY-MM-DD
|
/*
* games/_shared/ - shared routines for games
*
* mouse.h - interrupt 0x33 handler (mouse service) header file
* ____________________________________________________________
*
* Developed by Ondrej Jombik <nepto@platon.sk>
* Copyright (c) 1997-2000 Condy software inc.
* Copyright (c) 2001-2004 Platon SDG, http://platon.sk/
* All rights reserved.
*
* See README file for more information about this software.
* See COPYING file for license information.
*
* Download the latest version from
* http://platon.sk/projects/games/
*/
/* $Platon: games/_shared/mouse.h,v 1.3 2003/08/03 21:34:18 nepto Exp $ */
#ifndef __MOUSE_H
#define __MOUSE_H
/* INCLUDE */
#include <typedef.h>
/* TYPEDEF */
/* DEFINE */
/* INTERFACE */
/* 0h-inicializacia mysi
vstup : nic
vystup : pocet tlacitok, podporovanych mysou */
BYTE initmouse(void);
/* 1h-zobrazenie kurzora
vstup : nic
vystup : nic */
void showmouse(void);
/* 2h-skrytie kurzora
vstup : nic
vystup : nic */
void hidemouse(void);
/* 3h-informacie o pozicii mysi a stave tlacitok
vstup : pointer na x,y
vystup : hodnota stlaceneho tlacitka */
BYTE getmousepos(WORD*x,WORD*y);
/* 4h-nadstavenie pozicie kurzora
vstup : x-ova a y-ova suradnica
vystup : nic */
void setmousepos(WORD x,WORD y);
/* 5h-informacie o stlaceni tlacitka
vstup : tlacitko a pointer na x,y
vystup : pocet stlaceni tlacitka od posledneho volania */
BYTE pressbutton(BYTE but,WORD*x,WORD*y);
/* 6h-informacie o uvolneni tlacitka
vstup : tlacitko a pointer na x,y
vystup : pocet uvolneni tlacitka od posledneho volania */
BYTE releasebutton(BYTE but,WORD*x,WORD*y);
/* 7h-nastavenie horizontalneho rozsahu suradnic
vstup : maximalna a minimalna suradnica x
vystup : nic */
void rangex(WORD a_min,WORD a_max);
/* 8h-nastavenie horizontalneho rozsahu suradnic
vstup : a_maximalna a a_minimalna suradnica y
vystup : nic */
void rangey(WORD a_min,WORD a_max);
/* 9h-definovanie grafickeho kurzoru
vstup : posunutie aktivneho bodu a pointer na data kurzoru
vystup : nic */
void setmousecur(WORD x,WORD y,void *p);
/* 10h-definovanie obdlznika v ktorom sa kurzor stava neviditelny
vstup : suradnice obdlznika
vystup : nic */
void exclude(WORD x1,WORD y1,WORD x2,WORD y2);
/* 0fh-nastavenie citlivosti pohybu mysi
vstup :
vystup : nic */
void mousesensitive(WORD x,WORD y);
void setmousespeed(WORD speed);
#endif
Platon Group <platon@platon.sk> http://platon.sk/
|