Changeset - b9aec3be2b8c
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 12 years ago 2013-06-17 00:25:17
drewp@bigasterisk.com
hw sliders send events in a way that piles up and we get big delays. this is a simple throttle that stops the pileup but interactivity is still bumpy
Ignore-this: a755c0611adee694bffc6fb08d3f767b
1 file changed with 8 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/keyboardcomposer
Show inline comments
 
@@ -375,7 +375,14 @@ class KeyboardComposer(Frame, SubClient)
 
            subbox = self.slider_table[(self.current_row, col)]
 
        except KeyError:
 
            return # no slider assigned at that column
 
        subbox.slider_var.set(value)
 

	
 
        if hasattr(self, 'pendingHwSet'):
 
            import twisted.internet.error
 
            try:
 
                self.pendingHwSet.cancel()
 
            except twisted.internet.error.AlreadyCalled:
 
                pass
 
        self.pendingHwSet = reactor.callLater(.01, subbox.slider_var.set, value)
 

	
 
    def send_to_hw(self, sub, hwCol, boxRow):
 
        if isinstance(self.sliders, DummySliders):
0 comments (0 inline, 0 general)