?? gui_touch_storeunstable.lst
字號:
C51 COMPILER V8.05a GUI_TOUCH_STOREUNSTABLE 04/11/2008 14:18:52 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUI_TOUCH_STOREUNSTABLE
OBJECT MODULE PLACED IN GUI_TOUCH_StoreUnstable.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI_TOUCH_StoreUnstable.c LARGE BROWSE MDU_F120 DEBU
-G OBJECTEXTEND PRINT(.\GUI_TOUCH_StoreUnstable.lst) OBJECT(GUI_TOUCH_StoreUnstable.obj)
line level source
1 /*
2 *********************************************************************************************************
3 * uC/GUI
4 * Universal graphic software for embedded applications
5 *
6 * (c) Copyright 2002, Micrium Inc., Weston, FL
7 * (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
8 *
9 * 礐/GUI is protected by international copyright laws. Knowledge of the
10 * source code may not be used to write a similar product. This file may
11 * only be used in accordance with a license and should not be redistributed
12 * in any way. We appreciate your understanding and fairness.
13 *
14 ----------------------------------------------------------------------
15 File : GUITOUCH_StoreUnstable.C
16 Purpose : Implementation of GUITOUCH_StoreUnstable
17 ----------------------------------------------------------------------
18 */
19
20
21 #include <stdlib.h>
22 #include "gui\Core\GUI_Protected.h"
23
24
25
26 /*********************************************************************
27 *
28 * Static data
29 *
30 **********************************************************************
31 */
32
33 static int _x, _y;
34
35 /*********************************************************************
36 *
37 * Public code
38 *
39 **********************************************************************
40 */
41
42
43 /*********************************************************************
44 *
45 * GUI_TOUCH_StoreUnstable
46 */
47 void GUI_TOUCH_StoreUnstable(int x, int y) {
48 1 int xDiff, yDiff;
49 1 xDiff = abs (x - _x);
50 1 yDiff = abs (y - _y);
51 1 if (xDiff + yDiff > 2) {
52 2 _x = x;
53 2 _y = y;
54 2 GUI_TOUCH_StoreState(x, y);
C51 COMPILER V8.05a GUI_TOUCH_STOREUNSTABLE 04/11/2008 14:18:52 PAGE 2
55 2 }
56 1 }
57
58 /*********************************************************************
59 *
60 * GUI_TOUCH_GetUnstable
61 */
62 void GUI_TOUCH_GetUnstable(int* px, int* py) {
63 1 *px = _x;
64 1 *py = _y;
65 1 }
66 /*************************** End of file ****************************/
67
68
69
70
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 162 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = 4 12
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -