libmanta
A cross-platform API for the Snyderphonics Manta
MantaMulti.h
00001 #ifndef MANTAMULTI_H
00002 #define MANTAMULTI_H
00003 
00004 #include "Manta.h"
00005 #include <list>
00006 
00007 using namespace std;
00008 
00009 /************************************************************************/
00018 class MantaMulti : public Manta
00019 {
00020    public:
00021       MantaMulti(MantaClient *client = NULL);
00022       void AttachClient(MantaClient *client);
00023       void DetachClient(MantaClient *client);
00024       int GetReferenceCount();
00025 
00026    protected:
00027       void PadEvent(int row, int column, int id, int value);
00028       void SliderEvent(int id, int value);
00029       void ButtonEvent(int id, int value);
00030       void PadVelocityEvent(int row, int column, int id, int velocity);
00031       void ButtonVelocityEvent(int id, int velocity);
00032       void FrameEvent(uint8_t *frame);
00033       //void DebugPrint(const char *fmt, ...);
00034       
00035    private:
00036       list<MantaClient *> ClientList;
00037       int ReferenceCount;
00038 };
00039 
00040 #endif /* MANTAMULTI_H */