early-access version 1652

This commit is contained in:
pineappleEA 2021-05-03 06:29:56 +02:00
parent f03372d309
commit 4a5997ad6a
3 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 1651. This is the source code for early-access 1652.
## Legal Notice ## Legal Notice

View File

@ -40,7 +40,7 @@ void Controller_Gesture::OnUpdate(const Core::Timing::CoreTiming& core_timing, u
shared_memory.header.timestamp = core_timing.GetCPUTicks(); shared_memory.header.timestamp = core_timing.GetCPUTicks();
shared_memory.header.total_entry_count = 17; shared_memory.header.total_entry_count = 17;
if (!IsControllerActivated() || !Settings::values.touchscreen.enabled) { if (!IsControllerActivated()) {
shared_memory.header.entry_count = 0; shared_memory.header.entry_count = 0;
shared_memory.header.last_entry_index = 0; shared_memory.header.last_entry_index = 0;
return; return;
@ -306,6 +306,10 @@ void Controller_Gesture::OnLoadInputDevices() {
} }
std::optional<std::size_t> Controller_Gesture::GetUnusedFingerID() const { std::optional<std::size_t> Controller_Gesture::GetUnusedFingerID() const {
// Dont assign any touch input to a point if disabled
if (!Settings::values.touchscreen.enabled) {
return std::nullopt;
}
std::size_t first_free_id = 0; std::size_t first_free_id = 0;
while (first_free_id < MAX_POINTS) { while (first_free_id < MAX_POINTS) {
if (!fingers[first_free_id].pressed) { if (!fingers[first_free_id].pressed) {

View File

@ -33,7 +33,7 @@ void Controller_Touchscreen::OnUpdate(const Core::Timing::CoreTiming& core_timin
shared_memory.header.timestamp = core_timing.GetCPUTicks(); shared_memory.header.timestamp = core_timing.GetCPUTicks();
shared_memory.header.total_entry_count = 17; shared_memory.header.total_entry_count = 17;
if (!IsControllerActivated() || !Settings::values.touchscreen.enabled) { if (!IsControllerActivated()) {
shared_memory.header.entry_count = 0; shared_memory.header.entry_count = 0;
shared_memory.header.last_entry_index = 0; shared_memory.header.last_entry_index = 0;
return; return;
@ -105,6 +105,10 @@ void Controller_Touchscreen::OnLoadInputDevices() {
} }
std::optional<std::size_t> Controller_Touchscreen::GetUnusedFingerID() const { std::optional<std::size_t> Controller_Touchscreen::GetUnusedFingerID() const {
// Dont assign any touch input to a finger if disabled
if (!Settings::values.touchscreen.enabled) {
return std::nullopt;
}
std::size_t first_free_id = 0; std::size_t first_free_id = 0;
while (first_free_id < MAX_FINGERS) { while (first_free_id < MAX_FINGERS) {
if (!fingers[first_free_id].pressed) { if (!fingers[first_free_id].pressed) {