[gnome] Bump extension versions ... I should probably get these out of here
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* sensorProxy.js
|
||||
* Copyright (C) 2024 kosmospredanie, shyzus
|
||||
* Copyright (C) 2025 kosmospredanie, shyzus
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -64,6 +64,17 @@ export class SensorProxy {
|
||||
this._proxy = null;
|
||||
}
|
||||
|
||||
get_accelerometer_orientation() {
|
||||
if (this._enabled) {
|
||||
let variant = this._proxy.get_cached_property('AccelerometerOrientation');
|
||||
let orientation = variant.unpack();
|
||||
variant.unref();
|
||||
return orientation;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
properties_changed(proxy, changed, _invalidated) {
|
||||
if (!this._enabled) return;
|
||||
let properties = changed.deep_unpack();
|
||||
|
||||
Reference in New Issue
Block a user