Report no pressed keys -- now it properly plays the input.
[synaesthesia.git] / rawwrap.cc
blobaa19942bb512c965c4a40c2fc425e6a1ebb05acb
1 /* Synaesthesia - program to display sound graphically
2 Raw output module.
3 Copyright (C) 2009 RafaƂ Rzepecki <divided.mind@gmail.com>
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 2 of the License, or (at your
8 option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #include <stdio.h>
21 #include "syna.h"
23 bool RawScreen::init(int xHint,int yHint,int widthHint,int heightHint,bool fullscreen) {
24 fprintf(stderr, "Using raw video output, size %dx%d.\n", widthHint, heightHint);
25 outWidth = widthHint;
26 outHeight = heightHint;
27 return true;
30 void RawScreen::setPalette(unsigned char *palette) {
33 void RawScreen::end() {
36 void RawScreen::inputUpdate(int &mouseX,int &mouseY,int &mouseButtons,char &keyHit) {
37 keyHit = 0;
40 void RawScreen::show(void) {