Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic input handling #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add basic input handling #35

wants to merge 1 commit into from

Conversation

rasmushugosson
Copy link
Collaborator

Fixes #34

Copy link
Collaborator

@PushingCoder572 PushingCoder572 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser bra ut. Hade varit najs om man jobbade med naming-conventions, håller själv på att retroaktivt ändra min kod. Och hade varit skönt om man ignorerade ändringarna i renderer för att undvika merge-conflicts, typ hela filen ändras av #30.

#include <GLFW/glfw3.h>
#include <bitset>

struct keyboard_data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PascalCase för structs är conventions som jag har jobbat med

std::bitset<1024> keys;
};

void keyboard_init(GLFWwindow* window);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase för funktioner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basic input handling
2 participants