1 /*
2 * @(#)$Id: PressKeystroke.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Ueli Kurmann, igesture@uelikurmann.ch
5 *
6 * Purpose :
7 *
8 * -----------------------------------------------------------------------
9 *
10 * Revision Information:
11 *
12 * Date Who Reason
13 *
14 * Mar 09, 2007 ukurmann Initial Release
15 * Mar 24, 2007 bsigner Cleanup
16 *
17 * -----------------------------------------------------------------------
18 *
19 * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20 *
21 * This software is the proprietary information of ETH Zurich.
22 * Use is subject to license terms.
23 *
24 */
25
26
27 package org.igesture.app.keyboard;
28
29 import org.ximtec.igesture.core.ResultSet;
30 import org.ximtec.igesture.event.GestureAction;
31 import org.ximtec.igesture.io.keyboard.Key;
32 import org.ximtec.igesture.io.keyboard.Win32KeyboardProxy;
33
34
35 /**
36 * @version 1.0 Mar 2007
37 * @author Ueli Kurmann, igesture@uelikurmann.ch
38 * @author Beat Signer, signer@inf.ethz.ch
39 */
40 public class PressKeystroke implements GestureAction {
41
42 private Key[] keys;
43
44
45 public PressKeystroke(Key... keys) {
46 this.keys = keys;
47 }
48
49
50 public void actionPerformed(ResultSet resultSet) {
51 Win32KeyboardProxy.pressKey(keys);
52 } // run
53
54 }