mirror of
https://gitea.tendokyu.moe/TeamTofuShop/segatools.git
synced 2026-09-22 22:37:59 +03:00
* Rewrote the input handler Added support for dinput and xinput, full keyboard slider cell binding (#127), hold-takeovers, button alternation and auto-sliding (PS4 behaviour). See segatools.ini for a detailed description about everything. * Split touch handling into backends and added Wintouch touch emulation Now you can use actual touchscreens as well as mouse emulation was not the greatest when trying to use an actual touchscreen. * Fixed input issues gamebtns was always uninitialized, so good luck trying to do anything. How did nobody ever complain about this? lol * Fixed resolution issues caused by chaining both gfx hooks The diva-specific hook is the only one we need. Stacking both has strange effects. * Added support for the MITSUBISHI CP9550DS printer Q: Why? A: /shrug  I am not particularly good at this game (or the pass requirements are insane, 23+12 misses out of ~550 is a fail!?), so if someone could test how this feels as opposed to the PS4 version, that would help a lot!  Also something that happens but that I can't reliably reproduce is that my aime card reader randomly becomes NG after a dozen game starts until I delete eeprom.bin. If that is the case, the only packet sent is SEND_HEX_DATA. Reviewed-on: https://gitea.tendokyu.moe/TeamTofuShop/segatools/pulls/129 Co-authored-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com> Co-committed-by: kyoubate-haruka <46010460+kyoubate-haruka@users.noreply.github.com>
36 lines
715 B
C
36 lines
715 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <windows.h>
|
|
|
|
struct printer_cp_config {
|
|
bool enable;
|
|
wchar_t printer_out_path[MAX_PATH];
|
|
char serial_no[7];
|
|
uint32_t print_time;
|
|
};
|
|
|
|
struct printer_cp_image {
|
|
uint8_t* data;
|
|
uint32_t unk1;
|
|
uint32_t unk2;
|
|
uint32_t unk3;
|
|
uint32_t width;
|
|
uint32_t height;
|
|
};
|
|
|
|
enum printer_cp_status {
|
|
PRINTER_STATUS_READY = 0,
|
|
PRINTER_STATUS_PREPARING = 1,
|
|
};
|
|
|
|
enum printer_cp_error {
|
|
PRINTER_ERROR_NONE = 0,
|
|
PRINTER_ERROR_GENERIC = 100,
|
|
PRINTER_ERROR_105 = 105
|
|
};
|
|
|
|
HRESULT printer_cp_hook_init(const struct printer_cp_config* cfg, HINSTANCE self);
|
|
void printer_cp_hook_insert_hooks(HMODULE target);
|