Skip to content

Commit 2af7e6c

Browse files
QuzarDCQuzarDC
authored andcommitted
mouse: Make mouse_cond_t internal, type the maple response.
Move cond type internal as was done in KallistiOS#212 for controller. This was only actually usefully public for an ancient API that's gone. The delta define went along as it's only for use with the cond.
1 parent 144a558 commit 2af7e6c

2 files changed

Lines changed: 15 additions & 18 deletions

File tree

kernel/arch/dreamcast/hardware/maple/mouse.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@
1010
#include <stdint.h>
1111
#include <assert.h>
1212

13+
/* Mouse center value in the raw condition structure. */
14+
#define MOUSE_DELTA_CENTER 0x200
15+
16+
/* Raw controller condition structure */
17+
typedef struct {
18+
uint16_t buttons;
19+
uint16_t dummy1;
20+
int16_t dx;
21+
int16_t dy;
22+
int16_t dz;
23+
uint16_t dummy2;
24+
uint32_t dummy3;
25+
uint32_t dummy4;
26+
} mouse_cond_t;
27+
1328
static void mouse_reply(maple_state_t *st, maple_frame_t *frm) {
1429
(void)st;
1530

kernel/arch/dreamcast/include/dc/maple/mouse.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,6 @@ __BEGIN_DECLS
4343
#define MOUSE_SIDEBUTTON BIT(3) /**< \brief Side mouse button */
4444
/** @} */
4545

46-
/** \brief Mouse center value in the raw condition structure.
47-
\ingroup mouse
48-
*/
49-
#define MOUSE_DELTA_CENTER 0x200
50-
51-
/** \cond */
52-
typedef struct {
53-
uint16_t buttons;
54-
uint16_t dummy1;
55-
int16_t dx;
56-
int16_t dy;
57-
int16_t dz;
58-
uint16_t dummy2;
59-
uint32_t dummy3;
60-
uint32_t dummy4;
61-
} mouse_cond_t;
62-
/** \endcond */
63-
6446
/* More civilized mouse structure. There are several significant
6547
differences in data interpretation between the "cooked" and
6648
the old "raw" structs:

0 commit comments

Comments
 (0)