This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ofApp::pollKeys(){ | |
HANDLE hStdInput = GetStdHandle(STD_INPUT_HANDLE); | |
DWORD events = 0; // how many events took place | |
INPUT_RECORD input_record; // a record of input events | |
DWORD input_size = 1; // how many characters to read | |
// we use peek so that this is non-blocking. | |
BOOL peek = PeekConsoleInput(hStdInput, &input_record, input_size, &events); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, render_template, request | |
from uwsgidecorators import * | |
import pytronics | |
import os, time | |
public = Flask(__name__) | |
public.config['PROPAGATE_EXCEPTIONS'] = True | |
# Include "no-cache" header in all POST responses | |
@public.after_request |