From c8209d01f9ddf4c6670caee08073924cb33e447f Mon Sep 17 00:00:00 2001 From: rcoh Date: Wed, 29 Dec 2010 12:43:05 -0500 Subject: setting up some more behaviors to get inherited from --- inputs/MouseFollower.xml | 8 ++++++++ inputs/TCPInput.py | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 inputs/MouseFollower.xml (limited to 'inputs') diff --git a/inputs/MouseFollower.xml b/inputs/MouseFollower.xml new file mode 100644 index 0000000..7d7963d --- /dev/null +++ b/inputs/MouseFollower.xml @@ -0,0 +1,8 @@ + + inputs.PygameInput + + followmouse + 50 + True + + diff --git a/inputs/TCPInput.py b/inputs/TCPInput.py index 1517afa..197045f 100644 --- a/inputs/TCPInput.py +++ b/inputs/TCPInput.py @@ -1,6 +1,7 @@ import util.Strings as Strings from operationscore.Input import * import socket, json, time +import logging as main_log class TCPInput(Input): def inputInit(self): self.HOST = '' # Symbolic name meaning all available interfaces @@ -16,9 +17,9 @@ class TCPInput(Input): def sensingLoop(self): data = self.conn.recv(self.BUFFER_SIZE) - print data + main_log.debug('Incoming data', data) if not data or 'end' in data: # data end, close socket - print 'END!!' + main_log.debug('End in data') self.IS_RESPONDING = 0 self.sock.close() -- cgit v1.2.3