lanius / chord

Captures current status of keyboard.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chord

Captures current status of keyboard.

Prerequisite

And supports Python 2.7.

Install

pip install git+https://github.com/lanius/chord.git

Usage

import time

import chord


def main():
    with chord.capture() as pressed_keys:
        while 'Escape' not in pressed_keys:
            print pressed_keys  # ['S', 'P', 'A', 'M'] for example
            time.sleep(1)


if __name__ == '__main__':
    main()

About

Captures current status of keyboard.

License:MIT License


Languages

Language:Python 100.0%