diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-02-11 09:46:10 -0700 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2008-02-15 13:51:11 +1100 |
commit | 5b80529b6081bcff42ec20a096506c441729d39c (patch) | |
tree | de0dfa1c5d46b9c653101509ea8b7e268bcb463e | |
parent | 7eb2cd3427940c914d2bbc0c1e901b5c81ff50d5 (diff) |
press 0,1,2,etc keys for specific bias values
-rw-r--r-- | progs/demos/lodbias.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/progs/demos/lodbias.c b/progs/demos/lodbias.c index a4db22e26e..c5a2a1b457 100644 --- a/progs/demos/lodbias.c +++ b/progs/demos/lodbias.c @@ -159,6 +159,18 @@ static void Key( unsigned char key, int x, int y ) case 'B': Bias += 10; break; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + Bias = 100.0 * (key - '0'); + break; case 27: exit(0); break; |