~forsslundsystems/forssim/statistics

« back to all changes in this revision

Viewing changes to python/KeyManager.py

  • Committer: par.hellstrom at hiq
  • Date: 2009-01-14 12:29:11 UTC
  • Revision ID: par.hellstrom@hiq.se-20090114122911-1l0tbujn4ftfugfn
added python directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from Route import * 
 
2
from KeyDispatcher import *
 
3
 
 
4
class KeyManager( AutoUpdate( SFString ) ):
 
5
  def update( self, event ):
 
6
 
 
7
    key = event.getValue()
 
8
 
 
9
    InputDispatcher.dispatch(key)
 
10
 
 
11
    print '********************************************'
 
12
    print 'windowCenter: ', windowCenterField.getValue()
 
13
    print 'windowWidth: ', windowWidthField.getValue()
 
14
    print 'cutRadius: ', cutRadiusField.getValue()
 
15
    print 'drillSpeed: ', drillSpeedField.getValue()
 
16
    print 'SavedVolume: ', saveVolumeField.getValue()
 
17
    print 'timePlayback: ', playbackDirectionField.getValue()
 
18
    print 'saveHaptic: ', saveHapticField.getValue()
 
19
    print 'playHaptic: ', playHapticField.getValue()
 
20
    print 'saveHapticToFile ',saveHapticToFileField.getValue()
 
21
    print 'segment ', segmentField.getValue()
 
22
    print 'segmentHardness ', segmentHardnessField.getValue()
 
23
    print 'setHardness ', hardnessSetEnabledField.getValue()
 
24
    print 'resetTimePlayback ', resetTimePlaybackField.getValue()
 
25
 
 
26
    return key
 
27
 
 
28
keyManager = KeyManager()
 
29
    
 
30
    
 
31
 
 
32