Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 19, 2024
1 parent 22a8cee commit 4eb7339
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions spynnaker_visualisers/raytrace/drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def reshape(self, width, height):
gl.viewport(0, 0, width, height)
gl.load_identity()

def special_keyboard_down(self, key, x, y): # @UnusedVariable
def special_keyboard_down(self, key, x, y):
if key == glut.keyUp:
self._turn_down = -1
elif key == glut.keyDown:
Expand All @@ -97,13 +97,13 @@ def special_keyboard_down(self, key, x, y): # @UnusedVariable
elif key == glut.keyLeft:
self._rolling = 1

def special_keyboard_up(self, key, x, y): # @UnusedVariable
def special_keyboard_up(self, key, x, y):
if key == glut.keyUp or key == glut.keyDown:
self._turn_down = 0
elif key == glut.keyLeft or key == glut.keyRight:
self._rolling = 0

def keyboard_down(self, key, x, y): # @UnusedVariable
def keyboard_down(self, key, x, y):
if key == 'w':
self._moving = 1
elif key == 's':
Expand All @@ -119,7 +119,7 @@ def keyboard_down(self, key, x, y): # @UnusedVariable
elif key == '\x1b': # Escape
sys.exit()

def keyboard_up(self, key, x, y): # @UnusedVariable
def keyboard_up(self, key, x, y):
if key == 'w' or key == 's':
self._moving = 0
elif key == 'a' or key == 'd':
Expand Down
8 changes: 4 additions & 4 deletions spynnaker_visualisers/sudoku/sudoku_visualiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ def _init_cb(self, label, n_neurons, run_time_ms, machine_time_step_ms):
while not self.user_pressed_start:
self.start_condition.wait()

def _start_cb(self, *args): # @UnusedVariable
def _start_cb(self, *args):
with self.start_condition:
self.simulation_started = True

def _receive_cb(self, label, time, spikes=None): # @UnusedVariable
def _receive_cb(self, label, time, spikes=None):
if spikes is None:
spikes = []
with self.point_mutex:
Expand All @@ -161,7 +161,7 @@ def main_loop(self):
INIT_WINDOW_X, INIT_WINDOW_Y, FRAMES_PER_SECOND)

@overrides(GlutFramework.display)
def display(self, dTime): # @UnusedVariable
def display(self, dTime):
self._start_display()

cell_width = (self.window_width - 2 * WINDOW_BORDER) / 9.0
Expand Down Expand Up @@ -211,7 +211,7 @@ def reshape(self, width, height):
load_identity()

@overrides(GlutFramework.keyboard_down)
def keyboard_down(self, key, x, y): # @UnusedVariable
def keyboard_down(self, key, x, y):
if key == 32 or key == ' ':
with self.start_condition:
if not self.user_pressed_start:
Expand Down

0 comments on commit 4eb7339

Please sign in to comment.