diff options
author | Brian <[email protected]> | 2008-02-11 09:46:10 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-12 15:00:14 -0700 |
commit | 76295f0c3100ede33f9c79d4b40e5c22c67b6bec (patch) | |
tree | c7fb8b801b1befc5aff5f1812d1e6a7f2fbff3a1 /progs/demos/lodbias.c | |
parent | 929b6d2ebf8128140fa2db413600f64a66148b5f (diff) |
press 0,1,2,etc keys for specific bias values
Diffstat (limited to 'progs/demos/lodbias.c')
-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 a4db22e26e4..c5a2a1b4573 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; |