colorchord/colorchord2/hook.h

21 lines
695 B
C
Raw Permalink Normal View History

2015-07-29 07:56:18 +02:00
//Copyright 2015 <>< Charles Lohr under the ColorChord License.
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, short * samps, int channel_ct, int is_out );
void HookSoundInEvent( void (*SoundE)( void * v, int samples, short * samps, int channel_ct ), void * v, int is_out );
void UnhookSoundInEvent( void (*SoundE)( void * v, int samples, short * samps, int channel_ct ), void * v, int is_out );
2015-06-26 21:37:58 +02:00
#endif