Search
lxdream.org :: lxdream/src/drivers/video_osx.m :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_osx.m
changeset 1010:a506a2f66180
prev964:f2f3c7612d06
next1076:18c164e8aec4
author nkeynes
date Sun Apr 12 02:04:27 2009 +0000 (11 years ago)
permissions -rw-r--r--
last change Fix analogue joystick input
file annotate diff log raw
1.1 --- a/src/drivers/video_osx.m Thu Jan 15 04:15:11 2009 +0000
1.2 +++ b/src/drivers/video_osx.m Sun Apr 12 02:04:27 2009 +0000
1.3 @@ -131,12 +131,12 @@
1.4 - (void)keyDown: (NSEvent *) event
1.5 {
1.6 if( ![event isARepeat] ) {
1.7 - input_event_keydown( NULL, [event keyCode]+1, 1 );
1.8 + input_event_keydown( NULL, [event keyCode]+1, MAX_PRESSURE );
1.9 }
1.10 }
1.11 - (void)keyUp: (NSEvent *) event
1.12 {
1.13 - input_event_keyup( NULL, [event keyCode]+1, 1 );
1.14 + input_event_keyup( NULL, [event keyCode]+1 );
1.15 }
1.16 - (void)flagsChanged: (NSEvent *) event
1.17 {
1.18 @@ -146,10 +146,10 @@
1.19 }
1.20
1.21 if( flagsMask[keycode] == 0 ) {
1.22 - input_event_keydown( NULL, keycode+1, 1 );
1.23 + input_event_keydown( NULL, keycode+1, MAX_PRESSURE );
1.24 flagsMask[keycode] = 1;
1.25 } else {
1.26 - input_event_keyup( NULL, keycode+1, 1 );
1.27 + input_event_keyup( NULL, keycode+1 );
1.28 flagsMask[keycode] = 0;
1.29 }
1.30 }
.