home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.0
/
NeXTSTEP3.0.iso
/
NextDeveloper
/
Headers
/
drivers
/
event_status_driver.h
Wrap
Text File
|
1991-11-18
|
4KB
|
106 lines
/******************************************************************************
event_status_driver.h
API for the events status driver.
This file contains public API.
mpaque 11Oct91
Copyright 1991 NeXT Computer, Inc.
Modified:
******************************************************************************/
#ifndef _DRIVERS_EVENT_STATUS_DRIVER_
#define _DRIVERS_EVENT_STATUS_DRIVER_
#import <mach/port.h>
#import <bsd/dev/m68k/event.h>
#import <objc/objc.h> /* BOOL type */
#import <bsd/dev/ev_types.h>
/*
* Event System Handle:
*
* Information used by the system between calls to NXOpenEventSystem and
* NXCloseEventSystem. The application should not
* access any of the elements of this structure.
*/
typedef struct _NXEventHandle_{
union {
int fd;
port_t port;
} var;
} *NXEventHandle;
#ifndef _NXSIZE_
/*
* Floating point co-ordinates for an event, in a format
* compatible with NXSize, as defined in dpsclient/event.h.
*
* We can't reference dpsclient/event.h directly here for ugly
* internal project management reasons.
*/
typedef float _NXCoord_;
typedef struct __NXSize_ {
_NXCoord_ width, height;
} _NXSize_;
#endif _NXSIZE_
/* Open and Close */
NXEventHandle NXOpenEventStatus(void);
void NXCloseEventStatus(NXEventHandle handle);
/* Status */
extern NXEventSystemInfoType NXEventSystemInfo(NXEventHandle handle,
int flavor,
int *evs_info,
unsigned int *evs_info_cnt);
/* Keyboard */
extern void NXSetKeyRepeatInterval(NXEventHandle handle, double seconds);
extern double NXKeyRepeatInterval(NXEventHandle handle);
extern void NXSetKeyRepeatThreshold(NXEventHandle handle, double threshold);
extern double NXKeyRepeatThreshold(NXEventHandle handle);
extern NXKeyMapping *NXSetKeyMapping(NXEventHandle PXKeyMapping *keymap);
extern int NXKeyMappingLength(NXEventHandle handle);
extern NXKeyMapping *NXGetKeyMapping(NXEventHandle h, NXKeyMapping *keymap);
extern void NXResetKeyboard(NXEventHandle handle);
/* Mouse */
extern void NXSetClickTime(NXEventHandle handle, double seconds);
extern double NXClickTime(NXEventHandle handle);
extern void NXSetClickSpace(NXEventHandle handle, _NXSize_ *area);
extern void NXGetClickSpace(NXEventHandle handle, _NXSize_ *area);
extern void NXSetMouseScaling(NXEventHandle handle, NXMouseScaling *scaling);
extern void NXGetMouseScaling(NXEventHandle handle, NXMouseScaling *scaling);
extern void NXEnableMouseButton(NXEventHandle handle, NXMouseButton button);
extern NXMouseButton NXMouseButtonEnabled(NXEventHandle handle);
extern void NXResetMouse(NXEventHandle handle);
/* Screen Brightness and Auto-dimming */
extern void NXSetAutoDimThreshold(NXEventHandle handle, double seconds);
extern double NXAutoDimThreshold(NXEventHandle handle);
extern double NXAutoDimTime(NXEventHandle handle);
extern void NXSetAutoDimState(NXEventHandle handle, BOOL dimmed);
extern BOOL NXAutoDimState(NXEventHandle handle);
extern void NXSetScreenBrightness(NXEventHandle handle, double level);
extern double NXScreenBrightness(NXEventHandle handle);
extern void NXSetAutoDimBrightness(NXEventHandle handle, double level);
extern double NXAutoDimBrightness(NXEventHandle handle);
/* Speaker Volume */
extern void NXSetCurrentVolume(NXEventHandle handle, double volume);
extern double NXCurrentVolume(NXEventHandle handle);
/* Wait Cursor */
extern void NXSetWaitCursorThreshold(NXEventHandle handle, double seconds);
extern double NXWaitCursorThreshold(NXEventHandle handle);
extern void NXSetWaitCursorSustain(NXEventHandle handle, double seconds);
extern double NXWaitCursorSustain(NXEventHandle handle);
extern void NXSetWaitCursorFrameInterval(NXEventHandle handle, double seconds);
extern double NXWaitCursorFrameInterval(NXEventHandle handle);
#endif /*_DRIVERS_EVENT_STATUS_DRIVER_ */