Adds LAccess.bufferUsage, fixes wrong property names for displayWidth and displayHeight (#10679)
* Adds LAccess.bufferUsage - sensable property returning number of unprocessed commands in the graphics buffer of a display. Fixes wrong property keys (lacess.* -> laccess.*) of the recently added displayWidth and displayHeight properties. * Revert unnecessary bundle updates
This commit is contained in:
@@ -110,6 +110,7 @@ public class LogicDisplay extends Block{
|
||||
public double sense(LAccess sensor){
|
||||
return switch(sensor){
|
||||
case displayWidth, displayHeight -> displaySize;
|
||||
case bufferUsage -> commands.size;
|
||||
default -> super.sense(sensor);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user