summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3c10e65)
self.duration = duration
self.image = self.images[0]
self.duration = duration
self.image = self.images[0]
# workarround cursor alignement problem
pygame.event.set_blocked(pygame.MOUSEMOTION)
pygame.mouse.set_pos(pygame.mouse.get_pos())
# workarround cursor alignement problem
pygame.event.set_blocked(pygame.MOUSEMOTION)
pygame.mouse.set_pos(pygame.mouse.get_pos())
self.dirty = 1
self._blinking = False
self.image = self.flashImage
self.dirty = 1
self._blinking = False
self.image = self.flashImage
@event_handler(pygame.MOUSEBUTTONUP)
def flashOff(self, event) :
@event_handler(pygame.MOUSEBUTTONUP)
def flashOff(self, event) :
self._blinking = True
else :
self.image = self.images[0]
self._blinking = True
else :
self.image = self.images[0]
@event_handler(pygame.MOUSEMOTION)
def move(self, event) :
@event_handler(pygame.MOUSEMOTION)
def move(self, event) :
time.sleep(self.duration)
def stop(self) :
time.sleep(self.duration)
def stop(self) :
- self.running = False
\ No newline at end of file
def handleEasyColumnOver(self, event) :
col = event.column
if col.state and \
def handleEasyColumnOver(self, event) :
col = event.column
if col.state and \
- any(event.mouseEvent.buttons) and \
+ self.cursor.pressed and \
not self.currentNotePlayed :
self.playnote(col, event.pos)
SongPlayingScreen.setNoteTimeout(
not self.currentNotePlayed :
self.playnote(col, event.pos)
SongPlayingScreen.setNoteTimeout(
def handleNormalColumnOver(self, event) :
col = event.column
if col.state and \
def handleNormalColumnOver(self, event) :
col = event.column
if col.state and \
- any(event.mouseEvent.buttons) and \
+ self.cursor.pressed and \
not self.currentNotePlayed :
self.playnote(col, event.pos)
self.currentNotePlayed = True
not self.currentNotePlayed :
self.playnote(col, event.pos)
self.currentNotePlayed = True