Touch support for SDFE(Wacca).

Overview

Toucca

Touch support for WACCA(SDFE).

English | 简体中文

Setup

Assuming you already have the game process running and working keyboard input (Being able to main game with number and letter keys).

Download latest dll release that fits your segatool API version here.

Rename the release file to toucca.dll(the filename which will be filled into segatools.ini), put it alongside mercuryhook.dll, edit segatools.ini.

[touch]
enable=1 # Remember to enable it

[mercuryio]
path=toucca.dll # Or whatever you renamed it to

Configuration

Configuration is done via segatools.ini.

[touch]
divisions = 8 # Number of divisions to split the window radius into.
pointer_radius = 1 # Radius of cells triggered by a pointer
mode = 0 # 0 for absolute mode, 1 for relative mode

Absolute mode config

Ring 0 is the most inner ring, and ring 3 is the most outer ring.

[touch]
ring0 = 4
ring0_start = 4
ring0_end = 4
ring1 = 5
ring1_start = 5
ring1_end = 5
ring2 = 6
ring2_start = 6
ring2_end = 6
ring3 = 7
ring3_start = 7
ring3_end = 7

If the ring value is not supplied or set to -1, will automatically determine from divisions (making ring3 match the actual most outer ring, and layout other rings accordingly).

Relative mode config

[touch]
relative_start = 1 # Start of relative ring
relative_threshold = 1 # Physical ring required to cross to change mapped ring

Details

Pointer Radius

touch.pointer_radius controls how many cells are triggered by a pointer.

This only affects width of the pointer, not height.

For example, if touch.pointer_radius is set to 1, the pointer will be 1 cells wide, 3 cells wide if set to 2.

Touch Radius Compensation

By default, the radius of the play area is determined by window width, which may cause weirdness when the play area is not completely displayed.

By default, an extra 30px is added to the radius to compensate for this.

You can change compensation radius with config touch.radius_compensation, which could be positive or negative.

Build Yourself

I have only tried building on Windows since the game is Windows only. :)

Cross-compiling to Linux should be possible, but I haven't tried it.

With Rust installed with rustup, run cargo build --release to build.

License

GPL 3.0 or later

You might also like...
A TUI for your todos built in Rust with full CLI support.

todui TUI Features This app allows for almost anythig you would need when dealing with todos: Create, edit, and delete tasks Add links to tasks Add du

Holo is a suite of routing protocols designed to support high-scale and automation-driven networks.

Holo is a suite of routing protocols designed to support high-scale and automation-driven networks. For a description of what a routing protocol is, p

Automate your business flows, support, change tickets with Automatdeck
Automate your business flows, support, change tickets with Automatdeck

Automatdeck agent Website: https://automatdeck.com Documentation: https://doc.automatdeck.com Automatdeck agent is a simple lightweight IT automation

Use Thunk to build your Rust program that runs on old Windows platforms, support Windows XP and more!

Use Thunk to build your Rust program that runs on old platforms. Thunk uses VC-LTL5 and YY-Thunks to build programs that support old platforms. So, ho

Cross-platform pseudoterminal (PTY/ConPTY) implementation with async support

pseudoterminal The pseudoterminal crate is a versatile pseudoterminal (PTY) implementation designed for Rust, offering asynchronous capabilities. This

LaTeX support for Typst, powered by Rust and WASM.
LaTeX support for Typst, powered by Rust and WASM.

MiTeX LaTeX support for Typst, powered by Rust and WASM. MiTeX processes LaTeX code into an abstract syntax tree (AST). Then it transforms the AST int

Cross-platform casting SDK, support Android, Windows, Linux

mirror Cross-platform casting SDK, support Android, Windows, Linux Low-latency transport protocols use [SRT](https://github.com/Haivision/srt) Video:

Meta framework. Support for dynamic plug-ins and AOP

Kokoro Dynamic publish-subscribe pattern framework. Support for dynamic plug-ins and AOP Not yet stable, do not use in production !! 下面的内容有些老旧了,但是 exa

The fastest CLI tool for prompting LLMs. Including support for prompting several LLMs at once!
The fastest CLI tool for prompting LLMs. Including support for prompting several LLMs at once!

cai - The fastest CLI tool for prompting LLMs Features Build with Rust 🦀 for supreme performance and speed! 🏎️ Support for models by Groq, OpenAI, A

Comments
  • Relative mode support

    Relative mode support

    Motivation

    Currently we have physical section and ring data, thus we can use pointer ID to track the movement of pointer and create a "relative" mode to make actions like swiping easier.

    Implementation

    We track a mapping of pointer ID -> creation ring, creating an active touch pointer will insert the physical ring where the pointer is created. When updating the pointer information, we use the difference between current physical ring and creation ring to calculate the relative distance from touch.start_ring, and use that as the final mapped ring.

    enhancement help wanted 
    opened by BlueGlassBlock 0
  • Remote control support

    Remote control support

    A server-client pair like Brokenithm (https://github.com/tindy2013/Brokenithm-Android-Server, https://github.com/tindy2013/Brokenithm-Android) would be nice.

    Client implementation may be left for someone else to do it.

    enhancement help wanted 
    opened by BlueGlassBlock 0
Releases(0.2.0)
Owner
Nyuan Zhang
Senior high school student | Post OIer
Nyuan Zhang
🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3

?? A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3

Christian Visintin 574 Jan 5, 2023
Detects whether a terminal supports color, and gives details about that support

Detects whether a terminal supports color, and gives details about that support. It takes into account the NO_COLOR environment variable. This crate i

Kat Marchán 30 Dec 29, 2022
Rust crate to enable ANSI escape code support on Windows.

enable-ansi-support: Enable ANSI escape code support on Windows 10 About This crate provides one function, enable_ansi_support, which allows ANSI esca

Rain 9 Nov 18, 2022
A minimal readline with multiline and async support

RustyLine Async A minimal readline with multiline and async support. Inspired by rustyline , async-readline & termion-async-input.

Zyansheep 16 Dec 15, 2022
Support `use` in procmacros hygienically

Use statements in quote! Description Macro to simplify using Types in the quote! macro. Usage The quote_use! macro can be used just like quote!, but w

Roland Fredenhagen 2 Apr 1, 2022
DeFiChain octopus is a codename research & development for DFIP 2111-B: VOC: Ethereum Virtual Machine (EVM) Support.

DeFiCh/octopus DeFiChain octopus is a codename research & development for DFIP 2111-B: VOC: Ethereum Virtual Machine (EVM) Support . Proposed as a DFI

DeFi Meta Chain 6 Apr 18, 2022
Generate a vanity address (`juno1wynd...`) to show your support for WYND DAO

WYND Generator When you generate a new mnemonic, it is very random (must be to be secure), and you cannot predict the address you will get. However, i

null 9 Dec 8, 2022
🏭 Convert Markdown documents into themed HTML pages with support for code syntax highlighting, LaTeX and Mermaid diagrams.

Marky Markdown Magician ?? Features Hot reload previewing ?? Conversion to HTML / PDF ?? Themes! ✨ Extensions - Math, diagrams, syntax-highlighting ??

Vadim 12 Feb 19, 2023
Fallible allocation support for Rust's Vec

Fallible allocation functions for Vec Fallible allocation functions for the Rust standard library's alloc::vec::Vec type. These functions are designed

Microsoft 4 Mar 14, 2023
Translation support for mdbook. The plugins here give you a structured way to maintain a translated book.

Gettext Translation Support for mdbook The plugins here makes it easy to translate documentation written in mdbook into multiple languages. Support fo

Google 19 Apr 5, 2023