comparison src/gui_mac.c @ 87:014ba200db86

updated for version 7.0035
author vimboss
date Sat, 08 Jan 2005 21:45:39 +0000
parents af1bcb9a13c0
children a2081e6febb8
comparison
equal deleted inserted replaced
86:8173ec1e9f1f 87:014ba200db86
5670 } 5670 }
5671 } 5671 }
5672 #endif 5672 #endif
5673 5673
5674 /* 5674 /*
5675 * Get current y mouse coordinate in text window. 5675 * Get current mouse coordinates in text window.
5676 * Return -1 when unknown. 5676 */
5677 */ 5677 void gui_mch_getmouse(int *x, int *y)
5678 int
5679 gui_mch_get_mouse_x()
5680 { 5678 {
5681 Point where; 5679 Point where;
5682 5680
5683 GetMouse(&where); 5681 GetMouse(&where);
5684 5682
5685 return (where.h); 5683 *x = where.h;
5686 } 5684 *y = where.v;
5687
5688 int
5689 gui_mch_get_mouse_y()
5690 {
5691 Point where;
5692
5693 GetMouse(&where);
5694
5695 return (where.v);
5696 } 5685 }
5697 5686
5698 void 5687 void
5699 gui_mch_setmouse(x, y) 5688 gui_mch_setmouse(x, y)
5700 int x; 5689 int x;