keyboard input release >.>

ok so here is a code i typed up to get simple input from the keyboard.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <conio.h>
#include <iostream>
using namespace std;

int main()
{
    int a = 0;       // just so the while loop will continue to go on
    while (a == 0){
     char key = ' ';
     key = getch();
     if (key != 27){ // backspace
     cout << "You entered: " << key << endl;}
     else 
          return(0);
}
cin.get();
}


ok so how would i get it to work but on key release and not press and i hope
this isnt too much of a noobish question >.>?

any help very much appreciated :D
Topic archived. No new replies allowed.