style(libScePad): remove code comments
Per CONVENTIONS, code comments only mark technical debt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
efa6cd56f0
commit
71e0f6428f
|
|
@ -51,7 +51,6 @@ struct PadOutputState {
|
|||
namespace Pad {
|
||||
void Initialize();
|
||||
PadData ReadState();
|
||||
// Drains up to `num` queued states, oldest first; with none queued, writes the current state. Returns the count written.
|
||||
int Read(PadData* data, int num);
|
||||
void SetVibration(std::uint8_t large, std::uint8_t small);
|
||||
void SetVibrationMode(int mode);
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ namespace {
|
|||
PadInputState input;
|
||||
std::uint64_t timestamp = 0;
|
||||
};
|
||||
// States published since the last scePadRead; the oldest is dropped once 64 are waiting.
|
||||
constexpr std::size_t kQueueCapacity = 64;
|
||||
std::deque<QueuedInput> queue;
|
||||
std::exception_ptr failure;
|
||||
|
|
@ -108,7 +107,6 @@ void Pad::Initialize() {
|
|||
}
|
||||
|
||||
namespace {
|
||||
// Converts one input sample; motion fusion integrates up to `now` and touch ids advance per call.
|
||||
PadData BuildData(const PadInputState& state, std::uint64_t changeTime, std::uint64_t now) {
|
||||
PadData data{};
|
||||
data.buttons = state.buttons;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ static void Require(bool condition, const char* message) {
|
|||
}
|
||||
}
|
||||
|
||||
// The first call in a process also fixes the process start, so it must not read the clock before it.
|
||||
int main(int argc, char** argv) {
|
||||
constexpr std::uint64_t minuteMicros = 60ULL * 1000 * 1000;
|
||||
if (argc > 1 && std::strcmp(argv[1], "counter") == 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue