colorchord/hook.h

19 lines
630 B
C
Raw Normal View History

2015-06-26 21:37:58 +02:00
#ifndef _KEYHOOK_H
#define _KEYHOOK_H
#define MAX_KEY_EVENTS 16
#define MAX_SOUND_EVENTS 16
void KeyHappened( int key, int down );
void HookKeyEvent( void (*KeyEvent)( void * v, int key, int down ), void * v );
void UnhookKeyEvent( void (*KeyEvent)( void * v, int key, int down ), void * v );
void SoundEventHappened( int samples, float * samps, int channel_ct, int is_out );
void HookSoundInEvent( void (*SoundE)( void * v, int samples, float * samps, int channel_ct ), void * v, int is_out );
void UnhookSoundInEvent( void (*SoundE)( void * v, int samples, float * samps, int channel_ct ), void * v, int is_out );
#endif