mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-04 19:25:43 -04:00
Touch controls (#2053)
* WIP touch controls * Action icons * Updates * Don't mutate freeCamera config; allow switching between touch and controller cam * Wow * Fix build & add Skip button * Fix build & add settings * RCSS cleanup * Dpad and fishing, might redo * Add menu mouse controls * More pointer & fix icons * Optimizations & introduce layout system * Update aurora * Implement touch controls layout editor * Cleanup & fixes * Allow disabling mouse/touch in menus * More fixes
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "JSystem/JUtility/JUTFont.h"
|
||||
|
||||
#if TARGET_PC
|
||||
#include "dusk/menu_pointer.h"
|
||||
#include "dusk/scope_guard.hpp"
|
||||
#endif
|
||||
|
||||
@@ -575,6 +576,20 @@ void jmessage_tReference::pageSend() {
|
||||
|
||||
void jmessage_tReference::selectMessage() {
|
||||
if (mSelectNum != 0) {
|
||||
#if TARGET_PC
|
||||
u8 pointerChoice = 0xFF;
|
||||
if (dusk::menu_pointer::get_dialog_choice(pointerChoice) && pointerChoice < mSelectNum &&
|
||||
pointerChoice != mSelectPos)
|
||||
{
|
||||
mSelectPos = pointerChoice;
|
||||
if (mSelectType != 0) {
|
||||
getObjectPtr()->getSequenceProcessor()->calcStringLength();
|
||||
}
|
||||
Z2GetAudioMgr()->seStart(Z2SE_SY_TALK_CURSOR, NULL, 0, 0, 1.0f, 1.0f, -1.0f,
|
||||
-1.0f, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
mpStick->checkTrigger();
|
||||
|
||||
if (mSelectType == 0) {
|
||||
|
||||
Reference in New Issue
Block a user