~ubuntu-branches/ubuntu/precise/vice/precise

« back to all changes in this revision

Viewing changes to src/arch/unix/x11/gnome/gnomekbd.c

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-02-11 18:30:16 UTC
  • mfrom: (1.1.8 upstream) (9.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100211183016-f6n8usn3tzp0u6dp
Tags: 2.2.dfsg-1
* New upstream release, C64 DTV is included so update package description
  and add it to the menu.
* Drop patch fixing build failure with gcc-4.4 , applied upstream.
* Fix some lintian problems and clean up debian/rules .

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 * Written by
5
5
 *  Oliver Schaertel
6
 
 *  Martin Pottendorfer <Martin.Pottendorfer@alcatel.at>
 
6
 *  pottendo <pottendo@gmx.net>
7
7
 *
8
8
 * This file is part of VICE, the Versatile Commodore Emulator.
9
9
 * See README for copyright notice.
44
44
{
45
45
    guint sym = gdk_keyval_from_name(keyname);
46
46
 
47
 
    if (sym == GDK_VoidSymbol)
 
47
    if (sym == GDK_VoidSymbol) {
48
48
        return -1;
 
49
    }
49
50
 
50
51
    return (signed long)sym;
51
52
}
62
63
 
63
64
    key = report->key.keyval;
64
65
    switch (report->type) {
65
 
      case GDK_KEY_PRESS:
66
 
        keyboard_key_pressed((signed long)key);
67
 
        return TRUE;
68
 
 
69
 
      case GDK_KEY_RELEASE:
70
 
        if (key == GDK_Shift_L
71
 
         || key == GDK_Shift_R
72
 
         || key == GDK_ISO_Level3_Shift
73
 
        )
 
66
        case GDK_KEY_PRESS:
 
67
            keyboard_key_pressed((signed long)key);
 
68
            return TRUE;
 
69
        case GDK_KEY_RELEASE:
 
70
            if (key == GDK_Shift_L || key == GDK_Shift_R || key == GDK_ISO_Level3_Shift) {
 
71
                keyboard_key_clear();
 
72
            }
 
73
            keyboard_key_released(key);
 
74
            break;
 
75
        case GDK_ENTER_NOTIFY:
 
76
        case GDK_LEAVE_NOTIFY:
 
77
        case GDK_FOCUS_CHANGE:
74
78
            keyboard_key_clear();
75
 
        keyboard_key_released(key);
76
 
        break;
77
 
 
78
 
      case GDK_ENTER_NOTIFY:
79
 
      case GDK_LEAVE_NOTIFY:
80
 
      case GDK_FOCUS_CHANGE:
81
 
        keyboard_key_clear();
82
 
        break;
83
 
 
84
 
      default:
85
 
        break;
86
 
 
 
79
            break;
 
80
        default:
 
81
            break;
87
82
    }                           /* switch */
88
83
    return FALSE;
89
84
}