source: buchla-68k/include/curpak.h@ de91266

Last change on this file since de91266 was 5fa506d, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Include file cleanup.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 =============================================================================
3 curpak.h -- header for cursor and data entry functions
4 Version 5 -- 1988-10-12 -- D.N. Lynx Crowe
5 =============================================================================
6
7*/
8
9#pragma once
10
11#include "fields.h"
12#include "stdint.h"
13
14/* cursor types */
15
16#define CT_GRAF 0 /* graphics */
17#define CT_TEXT 1 /* text -- general */
18#define CT_VIRT 2 /* virtual -- graphic */
19#define CT_SCOR 3 /* text -- score */
20#define CT_SMTH 4 /* text -- smooth scroll */
21#define CT_MENU 5 /* virtual -- character */
22
23/* cursor and data entry function parameter structure */
24
25struct curpak {
26
27 int16_t (*curtype)(void);
28 void (*premove)(void);
29 void (*pstmove)(void);
30 void (*cx_key)(void);
31 void (*cy_key)(void);
32 void (*cx_upd)(void);
33 void (*cy_upd)(void);
34 void (*xy_up)(void);
35 void (*xy_dn)(void);
36 void (*x_key)(void);
37 void (*e_key)(void);
38 void (*m_key)(void);
39 void (*d_key)(int16_t k);
40 int16_t (*not_fld)(int16_t k);
41 struct fet *curfet;
42 struct selbox *csbp;
43 int16_t *cratex;
44 int16_t *cratey;
45 int16_t cmtype;
46 int16_t cxval;
47 int16_t cyval;
48};
49
Note: See TracBrowser for help on using the repository browser.