148 |
148 |
149 inline TInt RLddDigitiserTest::setPointer3DPressureStep(TUint aPointer3DPressureStep) |
149 inline TInt RLddDigitiserTest::setPointer3DPressureStep(TUint aPointer3DPressureStep) |
150 { |
150 { |
151 return DoControl(ESET_EPOINTER3DPRESSURESTEP, (TAny *)aPointer3DPressureStep); |
151 return DoControl(ESET_EPOINTER3DPRESSURESTEP, (TAny *)aPointer3DPressureStep); |
152 } |
152 } |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 //TrawEvents |
|
158 inline TInt RLddDigitiserTest::setTEvntType(TInt aType) |
|
159 { |
|
160 return DoControl(ESET_TRAWEVENT_EVENTTYPE, (TAny *)aType); |
|
161 } |
|
162 |
|
163 inline TInt RLddDigitiserTest::getTEvntType() |
|
164 { |
|
165 return DoControl(EGET_TRAWEVENT_EVENTTYPE); |
|
166 } |
|
167 |
|
168 inline TInt RLddDigitiserTest::setTEvntDNum(TInt aDNum) |
|
169 { |
|
170 return DoControl(ESET_TEVENT_DNMBR, (TAny *)aDNum); |
|
171 |
|
172 } |
|
173 |
|
174 inline TInt RLddDigitiserTest::getTEvntDNum() |
|
175 { |
|
176 return DoControl(EGET_TEVENT_DNMBR); |
|
177 } |
|
178 |
|
179 |
|
180 |
|
181 inline TInt RLddDigitiserTest::setTEvntScanCode(TInt aType,TInt aScanCode) |
|
182 |
|
183 { |
|
184 TUsrEventBuf eventBuf; |
|
185 eventBuf().iType=aType; |
|
186 eventBuf().iScanCode=aScanCode; |
|
187 return DoControl(ESET_TRAWEVENT_SCANCODE, (TAny *)&eventBuf); |
|
188 |
|
189 |
|
190 } |
|
191 |
|
192 inline TInt RLddDigitiserTest::getTEvntScanCode() |
|
193 |
|
194 { |
|
195 return DoControl(EGET_TRAWEVENT_SCANCODE); |
|
196 } |
|
197 |
|
198 |
|
199 inline TInt RLddDigitiserTest::setTEvntRotation(TInt aType,TInt aAlpha) |
|
200 |
|
201 { |
|
202 |
|
203 TUsrEventBuf eventBuf; |
|
204 eventBuf().iType=aType; |
|
205 eventBuf().iAlpha=aAlpha; |
|
206 return DoControl(ESET_TRAWEVENT_ROTATION, (TAny *)&eventBuf); |
|
207 } |
|
208 |
|
209 inline TInt RLddDigitiserTest::getTEvntRotation() |
|
210 |
|
211 { |
|
212 return DoControl(EGET_TRAWEVENT_ROTATION); |
|
213 } |
|
214 |
|
215 |
|
216 inline TInt RLddDigitiserTest::setTEvntPntr(TInt aPointerNumber) |
|
217 { |
|
218 return DoControl(ESET_TRAWEVENT_PTRNMBR, (TAny *)aPointerNumber); |
|
219 } |
|
220 inline TInt RLddDigitiserTest::getTEvntPntr() |
|
221 { |
|
222 return DoControl(EGET_TRAWEVENT_PTRNMBR); |
|
223 } |
|
224 |
|
225 inline TInt RLddDigitiserTest::getTEvntTicks() |
|
226 { |
|
227 return DoControl(EGET_TRAWEVENT_TICKS); |
|
228 } |
|
229 |
|
230 inline TBool RLddDigitiserTest::TEvntTicksIsTip() |
|
231 { |
|
232 return DoControl(EGET_TRAWEVENT_TIP); |
|
233 } |
|
234 inline TInt RLddDigitiserTest::setTEvntTip(TBool aTip) |
|
235 { |
|
236 return DoControl(ESET_TRAWEVENT_TIP, (TAny *)aTip); |
|
237 } |
|
238 |
|
239 |
|
240 |
|
241 inline TInt RLddDigitiserTest::setTEvnt3DnPntr (TInt aType, TInt aX, TInt aY, TInt aZ, TUint8 aPointerNumber) |
|
242 { |
|
243 |
|
244 |
|
245 TUsrEventBuf eventBuf; |
|
246 |
|
247 eventBuf().iType=aType; |
|
248 eventBuf().iX=aX; |
|
249 eventBuf().iY=aY; |
|
250 eventBuf().iZ=aZ; |
|
251 eventBuf().iPointerNumber=aPointerNumber; |
|
252 return DoControl(ESET_TRAWEVENT_3DNPTRNMBR, (TAny *)&eventBuf); |
|
253 |
|
254 |
|
255 } |
|
256 |
|
257 inline TInt RLddDigitiserTest::setTEvntPos(TInt aType,TInt aX,TInt aY) |
|
258 { |
|
259 |
|
260 TUsrEventBuf eventBuf; |
|
261 eventBuf().iType=aType; |
|
262 eventBuf().iX=aX; |
|
263 eventBuf().iY=aY; |
|
264 return DoControl(ESET_TRAWEVENT_POS2D, (TAny *)&eventBuf); |
|
265 } |
|
266 |
|
267 |
|
268 inline TInt RLddDigitiserTest::getTEvntPos(TUsrEventBuf& eventBuf) |
|
269 { |
|
270 return DoControl(EGET_TRAWEVENT_POS2D,(TAny *)&eventBuf); |
|
271 } |
|
272 |
|
273 |
|
274 inline TInt RLddDigitiserTest::setTEvntPos3D(TInt aType,TInt aX,TInt aY,TInt aZ) |
|
275 { |
|
276 TUsrEventBuf eventBuf; |
|
277 eventBuf().iType=aType; |
|
278 eventBuf().iX=aX; |
|
279 eventBuf().iY=aY; |
|
280 eventBuf().iZ=aZ; |
|
281 return DoControl(ESET_TRAWEVENT_POS3D, (TAny *)&eventBuf); |
|
282 } |
|
283 |
|
284 |
|
285 TInt RLddDigitiserTest::getTEventPos3D(TUsrEventBuf& eventBuf) |
|
286 { |
|
287 return DoControl(EGET_TRAWEVENT_POS3D,(TAny *)&eventBuf); |
|
288 } |
|
289 |
|
290 |
|
291 |
|
292 inline TInt RLddDigitiserTest::setTEvntAll(TInt aType,TInt aX,TInt aY,TInt aZ,TInt aPhi,TInt aTheta,TInt aAlpha) |
|
293 { |
|
294 TUsrEventBuf eventBuf; |
|
295 eventBuf().iType=aType; |
|
296 eventBuf().iX=aX; |
|
297 eventBuf().iY=aY; |
|
298 eventBuf().iZ=aZ; |
|
299 eventBuf().iPhi=aPhi; |
|
300 eventBuf().iTheta=aTheta; |
|
301 eventBuf().iAlpha=aAlpha; |
|
302 return DoControl(ESET_TRAWEVENT_ALL, (TAny *)&eventBuf); |
|
303 } |
|
304 |
|
305 inline TInt RLddDigitiserTest::setTEvntTilt(TInt aType,TInt aPhi,TInt aTheta) |
|
306 |
|
307 { |
|
308 TUsrEventBuf eventBuf; |
|
309 eventBuf().iType=aType; |
|
310 eventBuf().iPhi=aPhi; |
|
311 eventBuf().iTheta=aTheta; |
|
312 return DoControl(ESET_TRAWEVENT_TILT, (TAny *)&eventBuf); |
|
313 } |
|
314 |
|
315 |
|
316 inline TInt RLddDigitiserTest::getTEvntTilt(TUsrEventBuf& eventBuf) |
|
317 |
|
318 { |
|
319 return DoControl(EGET_TRAWEVENT_TILT,(TAny *)&eventBuf); |
|
320 } |
|
321 |
|
322 |
|
323 inline TInt RLddDigitiserTest::setTEvntRepeat(TInt aType,TInt aScanCode,TInt aRepeats) |
|
324 { |
|
325 TUsrEventBuf eventBuf; |
|
326 eventBuf().iType=aType; |
|
327 eventBuf().iScanCode=aScanCode; |
|
328 eventBuf().iRepeats=aRepeats; |
|
329 return DoControl(ESET_TRAWEVENT_REPEAT, (TAny *)&eventBuf); |
|
330 } |
|
331 |
|
332 inline TInt RLddDigitiserTest::getTEvntRepeat() |
|
333 { |
|
334 return DoControl(EGET_TRAWEVENT_REPEAT); |
|
335 } |
|
336 |
|
337 |
|
338 |
153 #endif |
339 #endif |
154 |
340 |
155 |
341 |
|
342 |