mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
hle: add BluetoothHid, DeviceService and Usbd stubs (#1031)
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#include "common/abi.h"
|
||||
#include "common/threads.h"
|
||||
#include "libs/errno.h"
|
||||
#include "libs/libs.h"
|
||||
#include "loader/symbolDatabase.h"
|
||||
|
||||
namespace Libs {
|
||||
|
||||
LIB_VERSION("Usbd", 1, "Usbd", 1, 1);
|
||||
|
||||
namespace Usbd {
|
||||
|
||||
constexpr uint32_t POLL_INTERVAL_MS = 16;
|
||||
|
||||
static int KYTY_SYSV_ABI UsbdInit() {
|
||||
PRINT_NAME();
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
static int KYTY_SYSV_ABI UsbdExit() {
|
||||
PRINT_NAME();
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
static int KYTY_SYSV_ABI UsbdHandleEventsTimeout() {
|
||||
PRINT_NAME();
|
||||
|
||||
// Avoid a busy loop while USB events are unimplemented.
|
||||
Common::Thread::SleepMicro(POLL_INTERVAL_MS * 1000);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
} // namespace Usbd
|
||||
|
||||
LIB_DEFINE(InitUsbd_1) {
|
||||
LIB_FUNC("TOhg7P6kTH4", Usbd::UsbdInit);
|
||||
LIB_FUNC("Fq6+0Fm55xU", Usbd::UsbdExit);
|
||||
LIB_FUNC("+wU6CGuZcWk", Usbd::UsbdHandleEventsTimeout);
|
||||
}
|
||||
|
||||
} // namespace Libs
|
||||
Reference in New Issue
Block a user