Source code for keycode

#!/usr/bin/env python
# -*- coding: utf-8 -*-

""" Key codes for OpenCV's cv2.waitKey() """

KEY_ESCAPE = [27, 1048603]
""" The ESC key """

KEY_SPACE = [32, 1048608]
""" The Space key """

KEY_UP = [63232, 1113938]
""" The Arrow Up key """
KEY_DOWN = [63233, 1113940]
""" The Arrow Down key """
KEY_LEFT = [63234, 1113937]
""" The Arrow Left key """
KEY_RIGHT = [63235, 1113939]
""" The Arrow Right key """

KEY_CLOSE_WINDOW = [-1]