00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KeyboardSenderAgent_H
00024 #define KeyboardSenderAgent_H
00025
00026 #include <Vrml.h>
00027 #include <Keyboard.h>
00028 using namespace Reachin;
00029
00030 #include "MicoleAgent.h"
00031 #include "micolelib.h"
00032
00045 class MICOLELIB_API KeyboardSenderAgent : public MicoleAgent
00046 {
00047 public:
00051 KeyboardSenderAgent();
00055 ~KeyboardSenderAgent();
00056
00057 private:
00058
00059 struct KeyboardListener : public Dependent< EvaldFField< KeyboardListener, MFInt32, MFInt32> >
00060 {
00061 void evaluate(MFInt32*);
00062 KeyboardSenderAgent *_kbssa;
00063 };
00064 auto_ptr< KeyboardListener > _keyboardListener;
00065 KeyboardSenderAgent(const KeyboardSenderAgent &);
00066 auto_ptr< Keyboard > _keyb;
00067 };
00068
00069 #endif