summaryrefslogtreecommitdiff
path: root/src/client/cursor.cpp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-20 01:50:14 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-07-20 01:50:14 -0300
commit8693eef8febde4df90b7fbd1fb9ac813b132fa50 (patch)
tree088258d6333d54a6b90f331d3b723ae824110679 /src/client/cursor.cpp
parent7620a0b1c080f7b6315e796d29e324bdca98484b (diff)
downloadjet-8693eef8febde4df90b7fbd1fb9ac813b132fa50.tar.gz
jet-8693eef8febde4df90b7fbd1fb9ac813b132fa50.zip
Wrap external functionality into classes
Diffstat (limited to 'src/client/cursor.cpp')
-rw-r--r--src/client/cursor.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/client/cursor.cpp b/src/client/cursor.cpp
deleted file mode 100644
index 4e76151..0000000
--- a/src/client/cursor.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-struct Cursor {
- int x;
- int y;
- Window *w;
-
- void move_left() {
- if (x > 0) x--;
- }
-
- void move_right() {
- if (x < w->width - 1 && w->pos(x + 1, y) != 0) x++;
- }
-};