Skip to content
Permalink
7c65d5344b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
30 lines (22 sloc) 415 Bytes
#ifndef KEYBOARD_H
#define KEYBOARD_H
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
class Keyboard
{
private:
static termios oldSettings, newSettings;
static bool grabbed;
public:
Keyboard();
static void grab();
static char get( float timeout = 0.5f );
static void release();
~Keyboard();
};
#endif