Skip to content

Add basic input handling#35

Open
rasmushugosson wants to merge 1 commit intomainfrom
input
Open

Add basic input handling#35
rasmushugosson wants to merge 1 commit intomainfrom
input

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