summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-07-04 23:02:33 +1200
committerBen Bridle <ben@derelict.engineering>2025-07-04 23:03:46 +1200
commit99f2686e661b87c0625053d929af211bfcc95fdc (patch)
tree19225bb0bd5a4eef87c1101b1d19ab184583d317
parent4a8b247ac90aab7c870ea0d814d322a86b957dad (diff)
downloadbedrock-js-99f2686e661b87c0625053d929af211bfcc95fdc.zip
Add wake methods to stream and clipboard device
This prevents an error from being raised when a program marks these devices as being allowed to wake the system from sleep.
-rw-r--r--bedrock.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/bedrock.js b/bedrock.js
index 4f1bd12..bdb4062 100644
--- a/bedrock.js
+++ b/bedrock.js
@@ -2143,6 +2143,9 @@ function StreamDevice(br) {
default: return;
}
}
+ this.wake = function() {
+ return false;
+ }
}
@@ -2171,6 +2174,9 @@ function ClipboardDevice(br) {
default: return;
}
}
+ this.wake = function() {
+ return false;
+ }
this.readEntry = function(v) {
this.readQueue = [];