예제 #1
0
 def on_key(window, key, scancode, action, mods):
     if not atb.TwEventKeyboardGLFW(key, action):
         if action == GLFW_PRESS:
             pass
예제 #2
0
파일: world.py 프로젝트: chenymark/pupil
 def on_key(window, key, scancode, action, mods):
     if not atb.TwEventKeyboardGLFW(key, action):
         if action == GLFW_PRESS:
             if key == GLFW_KEY_ESCAPE:
                 on_close(window)
예제 #3
0
 def on_key(self,window, key, scancode, action, mods):
     if not atb.TwEventKeyboardGLFW(key,int(action == GLFW_PRESS)):
         if action == GLFW_PRESS:
             if key == GLFW_KEY_ESCAPE:
                 self.stop()