summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Hsu <hsu@FreeBSD.org>1996-03-11 02:15:32 +0000
committerJeffrey Hsu <hsu@FreeBSD.org>1996-03-11 02:15:32 +0000
commit714f4ec3ef09ec5619119a010b4e3bc81eac026b (patch)
treef175ab565f8cb3d191f9012117cc98d60eda6006
parent1fed30f4b34b55833dbeef9218255392ff7291e3 (diff)
Notes
-rw-r--r--sys/sys/tablet.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/sys/sys/tablet.h b/sys/sys/tablet.h
index f9aefc0cac97..eb667053af6c 100644
--- a/sys/sys/tablet.h
+++ b/sys/sys/tablet.h
@@ -30,14 +30,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)tablet.h 8.3 (Berkeley) 1/4/94
- * $Id$
+ * @(#)tablet.h 8.4 (Berkeley) 7/10/94
+ * $Id: tablet.h,v 1.3 1996/02/24 11:21:19 hsu Exp $
*/
#ifndef _SYS_TABLET_H_
#define _SYS_TABLET_H_
-/*
* Tablet line discipline.
*/
#include <sys/ioctl.h>
@@ -50,25 +49,25 @@
* the information.
*/
struct tbpos {
- int xpos, ypos; /* raw x-y coordinates */
- short status; /* buttons/pen down */
+ int32_t xpos, ypos; /* raw x-y coordinates */
+ int16_t status; /* buttons/pen down */
#define TBINPROX 0100000 /* pen in proximity of tablet */
- short scount; /* sample count */
+ int16_t scount; /* sample count */
};
struct gtcopos {
- int xpos, ypos; /* raw x-y coordinates */
- short status; /* as above */
- short scount; /* sample count */
- short xtilt, ytilt; /* raw tilt */
- short pressure;
- short pad; /* pad to longword boundary */
+ int32_t xpos, ypos; /* raw x-y coordinates */
+ int16_t status; /* as above */
+ int16_t scount; /* sample count */
+ int16_t xtilt, ytilt; /* raw tilt */
+ int16_t pressure;
+ int16_t pad; /* pad to longword boundary */
};
struct polpos {
- short p_x, p_y, p_z; /* raw 3-space coordinates */
- short p_azi, p_pit, p_rol; /* azimuth, pitch, and roll */
- short p_stat; /* status, as above */
+ int16_t p_x, p_y, p_z; /* raw 3-space coordinates */
+ int16_t p_azi, p_pit, p_rol; /* azimuth, pitch, and roll */
+ int16_t p_stat; /* status, as above */
char p_key; /* calculator input keyboard */
};