Search
lxdream.org :: lxdream/src/display.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/display.c
changeset 1010:a506a2f66180
prev849:bbe26d798fc2
next1019:87f191f92f8f
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/display.c Mon Sep 08 05:13:51 2008 +0000
1.2 +++ b/src/display.c Sun Apr 12 02:04:27 2009 +0000
1.3 @@ -354,18 +354,18 @@
1.4 }
1.5 }
1.6
1.7 -void input_event_keyup( input_driver_t driver, uint16_t keycode, uint32_t pressure )
1.8 +void input_event_keyup( input_driver_t driver, uint16_t keycode )
1.9 {
1.10 if( display_focused ) {
1.11 keymap_entry_t *entryp = input_entry_from_keycode(driver,keycode);
1.12 if( entryp != NULL && *entryp != NULL ) {
1.13 - (*entryp)->callback( (*entryp)->data, (*entryp)->value, pressure, FALSE );
1.14 + (*entryp)->callback( (*entryp)->data, (*entryp)->value, 0, FALSE );
1.15 }
1.16
1.17 if( driver == NULL ) {
1.18 keymap_entry_t key = keyhooks;
1.19 while( key != NULL ) {
1.20 - key->callback( key->data, keycode, pressure, FALSE );
1.21 + key->callback( key->data, keycode, 0, FALSE );
1.22 key = key->next;
1.23 }
1.24 }
1.25 @@ -458,7 +458,7 @@
1.26 mouse_y = y;
1.27 }
1.28 mouse_buttons |= (1<<button);
1.29 - input_event_keydown( &system_mouse_driver, button+1, 1 );
1.30 + input_event_keydown( &system_mouse_driver, button+1, MAX_PRESSURE );
1.31 input_event_run_mouse_hooks( mouse_buttons, x, y, absolute );
1.32 }
1.33
1.34 @@ -469,7 +469,7 @@
1.35 mouse_y = y;
1.36 }
1.37 mouse_buttons &= ~(1<<button);
1.38 - input_event_keyup( &system_mouse_driver, button+1, 1 );
1.39 + input_event_keyup( &system_mouse_driver, button+1 );
1.40 input_event_run_mouse_hooks( mouse_buttons, x, y, absolute );
1.41 }
1.42
.