Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PS/2 mouse support #119

Merged
merged 4 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions video/agon.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#define VDP_MODE 0x86 // Get screen dimensions
#define VDP_RTC 0x87 // RTC
#define VDP_KEYSTATE 0x88 // Keyboard repeat rate and LED status
#define VDP_MOUSE 0x89 // Mouse data
#define VDP_BUFFERED 0xA0 // Buffered commands
#define VDP_LOGICALCOORDS 0xC0 // Switch BBC Micro style logical coords on and off
#define VDP_LEGACYMODES 0xC1 // Switch VDP 1.03 compatible modes on and off
Expand All @@ -62,6 +63,7 @@
#define PACKET_MODE 0x06 // Get screen dimensions
#define PACKET_RTC 0x07 // RTC
#define PACKET_KEYSTATE 0x08 // Keyboard repeat rate and LED status
#define PACKET_MOUSE 0x09 // Mouse data

#define AUDIO_CHANNELS 3 // Default number of audio channels
#define MAX_AUDIO_CHANNELS 32 // Maximum number of audio channels
Expand Down Expand Up @@ -121,6 +123,26 @@
#define AUDIO_STATE_RELEASE 4 // Channel is releasing a note
#define AUDIO_STATE_ABORT 5 // Channel is aborting a note

// Mouse commands
#define MOUSE_ENABLE 0 // Enable mouse
#define MOUSE_DISABLE 1 // Disable mouse
#define MOUSE_RESET 2 // Reset mouse
#define MOUSE_SET_CURSOR 3 // Set cursor
#define MOUSE_SET_POSITION 4 // Set mouse position
#define MOUSE_SET_AREA 5 // Set mouse area
#define MOUSE_SET_SAMPLERATE 6 // Set mouse sample rate
#define MOUSE_SET_RESOLUTION 7 // Set mouse resolution
#define MOUSE_SET_SCALING 8 // Set mouse scaling
#define MOUSE_SET_ACCERATION 9 // Set mouse acceleration (1-2000)
#define MOUSE_SET_WHEELACC 10 // Set mouse wheel acceleration

#define MOUSE_DEFAULT_CURSOR 0; // Default mouse cursor
#define MOUSE_DEFAULT_SAMPLERATE 60; // Default mouse sample rate
#define MOUSE_DEFAULT_RESOLUTION 2; // Default mouse resolution (4 counts/mm)
#define MOUSE_DEFAULT_SCALING 1; // Default mouse scaling (1:1)
#define MOUSE_DEFAULT_ACCELERATION 180; // Default mouse acceleration
#define MOUSE_DEFAULT_WHEELACC 60000; // Default mouse wheel acceleration

// Buffered commands
#define BUFFERED_WRITE 0x00 // Write to a numbered buffer
#define BUFFERED_CALL 0x01 // Call buffered commands
Expand Down
181 changes: 0 additions & 181 deletions video/agon_keyboard.h

This file was deleted.

Loading