Update 70000-incoming.py

This commit is contained in:
chrys87 2018-03-15 14:17:25 +01:00 committed by GitHub
parent 1a55f4fe2e
commit 1c86123131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,10 @@ class command():
#if len(self.env['screen']['newDelta'].strip(' \n\t')) <= 1: #if len(self.env['screen']['newDelta'].strip(' \n\t')) <= 1:
xMove = abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) xMove = abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x'])
yMove = abs(self.env['screen']['newCursor']['y'] - self.env['screen']['oldCursor']['y']) yMove = abs(self.env['screen']['newCursor']['y'] - self.env['screen']['oldCursor']['y'])
self.env['runtime']['debug'].writeDebugOut('newX:' + str(self.env['screen']['newCursor']['x']) + 'oldX:' + str(self.env['screen']['oldCursor']['x']),debug.debugLevel.INFO)
self.env['runtime']['debug'].writeDebugOut('newY:' + str(self.env['screen']['newCursor']['y']) + 'oldY:' + str(self.env['screen']['oldCursor']['y']),debug.debugLevel.INFO)
self.env['runtime']['debug'].writeDebugOut('xMove:'+ str(xMove)+' yMove:'+str(yMove),debug.debugLevel.INFO)
self.env['runtime']['debug'].writeDebugOut('NewDeltaLen:'+len(self.env['screen']['newDelta']),debug.debugLevel.INFO)
if (xMove >= 1) and xMove == len(self.env['screen']['newDelta']): if (xMove >= 1) and xMove == len(self.env['screen']['newDelta']):
# if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2: # if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2:
return return