Cappuccino  1.0.0
 All Classes Files Functions Variables Typedefs Macros Groups Pages
CPEvent_Constants.j
Go to the documentation of this file.
1 /*
2  * CPEvent_Constants.j
3  * AppKit
4  *
5  * Created by Francisco Tolmasky.
6  * Copyright 2008, 280 North, Inc.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
32 CPKeyDown = 10;
33 CPKeyUp = 11;
44 
45 // iPhone Event Types
50 
52 CPShiftKeyMask = 1 << 17;
53 CPControlKeyMask = 1 << 18;
55 CPCommandKeyMask = 1 << 20;
57 CPHelpKeyMask = 1 << 22;
60 
82 CPAnyEventMask = 0xffffffff;
83 
88 CPF1FunctionKey = "\uF704";
89 CPF2FunctionKey = "\uF705";
90 CPF3FunctionKey = "\uF706";
91 CPF4FunctionKey = "\uF707";
92 CPF5FunctionKey = "\uF708";
93 CPF6FunctionKey = "\uF709";
94 CPF7FunctionKey = "\uF70A";
95 CPF8FunctionKey = "\uF70B";
96 CPF9FunctionKey = "\uF70C";
97 CPF10FunctionKey = "\uF70D";
98 CPF11FunctionKey = "\uF70E";
99 CPF12FunctionKey = "\uF70F";
100 CPF13FunctionKey = "\uF710";
101 CPF14FunctionKey = "\uF711";
102 CPF15FunctionKey = "\uF712";
103 CPF16FunctionKey = "\uF713";
104 CPF17FunctionKey = "\uF714";
105 CPF18FunctionKey = "\uF715";
106 CPF19FunctionKey = "\uF716";
107 CPF20FunctionKey = "\uF717";
108 CPF21FunctionKey = "\uF718";
109 CPF22FunctionKey = "\uF719";
110 CPF23FunctionKey = "\uF71A";
111 CPF24FunctionKey = "\uF71B";
112 CPF25FunctionKey = "\uF71C";
113 CPF26FunctionKey = "\uF71D";
114 CPF27FunctionKey = "\uF71E";
115 CPF28FunctionKey = "\uF71F";
116 CPF29FunctionKey = "\uF720";
117 CPF30FunctionKey = "\uF721";
118 CPF31FunctionKey = "\uF722";
119 CPF32FunctionKey = "\uF723";
120 CPF33FunctionKey = "\uF724";
121 CPF34FunctionKey = "\uF725";
122 CPF35FunctionKey = "\uF726";
125 CPHomeFunctionKey = "\uF729";
127 CPEndFunctionKey = "\uF72B";
136 CPStopFunctionKey = "\uF734";
137 CPMenuFunctionKey = "\uF735";
138 CPUserFunctionKey = "\uF736";
147 CPPrevFunctionKey = "\uF73F";
148 CPNextFunctionKey = "\uF740";
151 CPUndoFunctionKey = "\uF743";
152 CPRedoFunctionKey = "\uF744";
153 CPFindFunctionKey = "\uF745";
154 CPHelpFunctionKey = "\uF746";
158 
159 
161 CPDOMEventMouseDown = "mousedown";
162 CPDOMEventMouseUp = "mouseup";
163 CPDOMEventMouseMoved = "mousemove";
165 CPDOMEventKeyUp = "keyup";
166 CPDOMEventKeyDown = "keydown";
167 CPDOMEventKeyPress = "keypress";
168 CPDOMEventCopy = "copy";
169 CPDOMEventPaste = "paste";
170 CPDOMEventScrollWheel = "mousewheel";
171 CPDOMEventTouchStart = "touchstart";
172 CPDOMEventTouchMove = "touchmove";
173 CPDOMEventTouchEnd = "touchend";
174 CPDOMEventTouchCancel = "touchcancel";