~ubuntu-branches/ubuntu/saucy/blender/saucy-proposed

« back to all changes in this revision

Viewing changes to intern/ghost/intern/GHOST_EventKey.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
/**
39
39
 * Key event.
40
 
 * @author      Maarten Gribnau
41
 
 * @date        May 11, 2001
 
40
 * \author      Maarten Gribnau
 
41
 * \date        May 11, 2001
42
42
 */
43
43
class GHOST_EventKey : public GHOST_Event
44
44
{
45
45
public:
46
46
        /**
47
47
         * Constructor.
48
 
         * @param msec  The time this event was generated.
49
 
         * @param type  The type of key event.
50
 
         * @param key   The key code of the key.
 
48
         * \param msec  The time this event was generated.
 
49
         * \param type  The type of key event.
 
50
         * \param key   The key code of the key.
51
51
         */
52
52
        GHOST_EventKey(GHOST_TUns64 msec,
53
53
                       GHOST_TEventType type,
54
 
                       GHOST_IWindow* window,
 
54
                       GHOST_IWindow *window,
55
55
                       GHOST_TKey key)
56
56
                : GHOST_Event(msec, type, window)
57
57
        {
58
58
                m_keyEventData.key = key;
59
59
                m_keyEventData.ascii = '\0';
60
 
                m_keyEventData.utf8_buf[0]= '\0';
 
60
                m_keyEventData.utf8_buf[0] = '\0';
61
61
                m_data = &m_keyEventData;
62
62
        }
63
63
        
64
64
        /**
65
65
         * Constructor.
66
 
         * @param msec  The time this event was generated.
67
 
         * @param type  The type of key event.
68
 
         * @param key   The key code of the key.
69
 
         * @param ascii The ascii code for the key event.
 
66
         * \param msec  The time this event was generated.
 
67
         * \param type  The type of key event.
 
68
         * \param key   The key code of the key.
 
69
         * \param ascii The ascii code for the key event.
70
70
         */
71
71
        GHOST_EventKey(GHOST_TUns64 msec,
72
72
                       GHOST_TEventType type,
73
 
                       GHOST_IWindow* window,
 
73
                       GHOST_IWindow *window,
74
74
                       GHOST_TKey key,
75
75
                       char ascii,
76
76
                       const char utf8_buf[6])
79
79
                m_keyEventData.key = key;
80
80
                m_keyEventData.ascii = ascii;
81
81
                if (utf8_buf) memcpy(m_keyEventData.utf8_buf, utf8_buf, sizeof(m_keyEventData.utf8_buf));
82
 
                else                 m_keyEventData.utf8_buf[0]= '\0';
 
82
                else m_keyEventData.utf8_buf[0] = '\0';
83
83
                m_data = &m_keyEventData;
84
84
        }
85
85