MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / character

Method character

src/main/java/field/graphics/Window.java:930–956  ·  view source on GitHub ↗
(long window, int character)

Source from the content-addressed store, hash-verified

928 if (window == Window.this.window) {
929 fireDrop(new Drop(files, mouseState, keyboardState));
930 }
931 }
932
933 @Override
934 public void windowPos(long window, int x, int y) {
935 if (window == Window.this.window) {
936 currentBounds.x = x;
937 currentBounds.y = y;
938 }
939 }
940
941 @Override
942 public void windowSize(long window, int width, int height) {
943 if (window == Window.this.window) {
944 currentBounds.w = width;
945 currentBounds.h = height;
946 }
947 }
948
949 @Override
950 public void framebufferSize(long window, int width, int height) {
951
952 }
953 };
954 }
955
956 public int getRetinaScaleFactor() {
957 int w = glfwGetWindowWidth(window);
958 if (w == 0) {
959 return 1 + ((doRetina && Main.os == Main.OS.mac) ? 1 : 0);

Callers

nothing calls this directly

Calls 3

cleanMethod · 0.95
withCharMethod · 0.80

Tested by

no test coverage detected