Git Product home page Git Product logo

3d-keyboard's Introduction

CS450 FALL 2021 FINAL PROJECT -- schofija

This is a 3D model of a keyboard (specifically a 60% layout).

All non-modifier keys are able to be pressed/released by their corresponding key input.

As glutGetModifiers() can only be called when a callback is generated, mapping modifier keys (SHIFT, CTRL, ALT) to actual inputs is a bit tricky. Instead, I've given SHIFT/CTRL/ALT alternate features to modify the scene.

  • Pressing SHIFT + any key will toggle key lighting

  • Pressing ALT + any key will toggle a backlight for the keys.

  • Pressing CTRL + any key will toggle labels for the keys.

  • CAPSLOCK, while being a modifier key, does not have functionality. According to the documentation for glutGetModifers(), while CAPSLOCK is enabled, GLUT_ACTIVE_SHIFT (the modifier key state when SHIFT is pressed) should be returned. However, CAPSLOCK does not appear to be returning this modifier state on my machine.

Screenshots of the program:

program-screenshot1 program-screenshot2 program-screenshot3 program-screenshot4

GETTING THIS TO WORK

I do not include all the files needed to run this program.

A visual studio solution with all needed additional files can be found here:

http://web.engr.oregonstate.edu/~mjb/cs450/Sample2019.zip

Copy all of the files in this repo into the SampleFreeGlut2019 folder.

glslprogram.cpp will needed to be added as a source file in VS (Right click 'Source Files' -> Add -> Existing Item)

3d-keyboard's People

Contributors

schofija avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.