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

Adds TheVan RoadKit Gamepad Layout #4090

Merged
merged 12 commits into from
Oct 7, 2018
Merged

Adds TheVan RoadKit Gamepad Layout #4090

merged 12 commits into from
Oct 7, 2018

Conversation

wavebeem
Copy link
Contributor

@wavebeem wavebeem commented Oct 7, 2018

I didn't see any gamepad style layouts so I thought I would contribute mine

@@ -0,0 +1,8 @@
#ifndef CONFIG_USER_H
Copy link
Member

Choose a reason for hiding this comment

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

If you could replace the include guard (the ifndef, define, and endif at the end) with just #pragma once?

It's simpler, and less prone to user error, so if you could make this switch?

#ifndef CONFIG_USER_H
#define CONFIG_USER_H

#include "../../config.h"
Copy link
Member

Choose a reason for hiding this comment

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

This line is not actually needed, and should be removed.

Specifically, the build script automatically includes all of the config.h files, so this is not necessary.

),
};

void persistent_default_layer_set(uint16_t default_layer) {
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove this function?

It's been depreciated in favor of the set_single_persistent_default_layer function (which is a core function).

https://docs.qmk.fm/#/ref_functions?id=setting-the-persistent-default-layer

switch (id) {
case 0:
if (record->event.pressed) {
persistent_default_layer_set(1UL << 0);
Copy link
Member

Choose a reason for hiding this comment

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

Could you replace this function with set_single_persistent_default_layer (and remove the 1UL << part)

default_layer_set(default_layer);
}

const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
Copy link
Member

Choose a reason for hiding this comment

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

Could you convert this over to process_record_user, as we have depreciated action_get_macro`?

It should be a pretty direct port.

https://docs.qmk.fm/#/feature_macros

RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend

ifndef QUANTUM_DIR
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove this (ifndef/include/endif) block?

It's not needed, and is a holdover from the old build system.

@wavebeem
Copy link
Contributor Author

wavebeem commented Oct 7, 2018

Thanks for the advice @drashna. I copied another folder for the RoadKit that must've been outdated. Let me know if you see any issues with the changes I pushed up.

@drashna drashna added the keymap label Oct 7, 2018
@drashna
Copy link
Member

drashna commented Oct 7, 2018

Yeah, we've been updating a lot of the boards with the newer stuff, but we haven't gotten to this one yet. So that's why.

But thanks! And nice!

@drashna drashna merged commit 370fdb8 into qmk:master Oct 7, 2018
akatrevorjay added a commit to akatrevorjay/qmk_firmware that referenced this pull request Oct 8, 2018
* 'master' of git://github.com/qmk/qmk_firmware:
  Keymap: Adds TheVan RoadKit Gamepad Layout (qmk#4090)
  Update and clarify Unicode documentation (qmk#4065)
  Update Contrib doc (qmk#4068)
  Add non-US Hash and Backslash to AutoShift handling
  Keymap: Update keyboards/planck/keymaps/vifon (qmk#4084)
zer09 pushed a commit to zer09/qmk_firmware that referenced this pull request Oct 20, 2018
* adds prototype firmware for wavebeem-gamepad

* adds installer script

* updates readme

* updates title

* adds prototype firmware for wavebeem-gamepad

* adds installer script

* updates readme

* updates title

* removes unused code

* removes more code

* simplify code
rseymour pushed a commit to rseymour/qmk_firmware that referenced this pull request Mar 13, 2019
* adds prototype firmware for wavebeem-gamepad

* adds installer script

* updates readme

* updates title

* adds prototype firmware for wavebeem-gamepad

* adds installer script

* updates readme

* updates title

* removes unused code

* removes more code

* simplify code
yamad pushed a commit to yamad/qmk_firmware that referenced this pull request Apr 10, 2019
* adds prototype firmware for wavebeem-gamepad

* adds installer script

* updates readme

* updates title

* adds prototype firmware for wavebeem-gamepad

* adds installer script

* updates readme

* updates title

* removes unused code

* removes more code

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

Successfully merging this pull request may close these issues.

2 participants