mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
69d78e0a87
## Link to GitHub Issue, if one exists N/A ## Description of change in current implementation j32d analog values are not encoded properly, values are supposed to go up to 1023, but they show up as 771 in game ## Testing tested with M32-007-2025092400, used DM PAD CALIBRATION menu
26 lines
735 B
C++
26 lines
735 B
C++
#pragma once
|
|
#include "acioemu/device.h"
|
|
#include "device.h"
|
|
|
|
namespace games::gitadora {
|
|
|
|
class J32DSerialDevice : public GitadoraDevice {
|
|
private:
|
|
uint8_t coin_counter = 0;
|
|
public:
|
|
J32DSerialDevice();
|
|
bool parse_msg(acioemu::MessageData *msg_in, circular_buffer<uint8_t> *response_buffer) override;
|
|
struct J32D_IO_STATUS {
|
|
uint16_t high_tom;
|
|
uint16_t low_tom;
|
|
uint16_t snare;
|
|
uint16_t floor_tom;
|
|
uint16_t left_cymbal;
|
|
uint16_t right_cymbal;
|
|
uint16_t hihat;
|
|
uint16_t unk7;
|
|
uint8_t pedals;
|
|
};
|
|
};
|
|
}
|