logitech-g27 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +1 -1
- package/README.md +3 -8
- package/code/color.js +1 -1
- package/code/data-map.js +1 -1
- package/code/index.js +2 -2
- package/docs/api.md +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<img src="https://raw.githubusercontent.com/nightmode/logitech-g27/
|
1
|
+
<img src="https://raw.githubusercontent.com/nightmode/logitech-g27/main/images/header.png" width="830" alt="">
|
2
2
|
|
3
3
|
# Logitech G27 Racing Wheel for Node
|
4
4
|
|
@@ -64,14 +64,9 @@ Vroom vroom sounds optional but encouraged. ^\_^
|
|
64
64
|
* [relay](docs/api.md#relay)
|
65
65
|
* [relayOS](docs/api.md#relayos)
|
66
66
|
|
67
|
-
##
|
67
|
+
## Donate
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
In addition to Patreon, here are some other ways you can help this project.
|
72
|
-
|
73
|
-
* [Report any issues](https://github.com/nightmode/logitech-g27/issues) on GitHub.
|
74
|
-
* Share your G27 wheel creation on social media to inspire others.
|
69
|
+
Buy me [Bubble Tea](https://ko-fi.com/kai_nightmode). Support my work and get the ability to send me private messages on Ko-fi. ^_^
|
75
70
|
|
76
71
|
## License
|
77
72
|
|
package/code/color.js
CHANGED
@@ -55,7 +55,7 @@ function setupColors() {
|
|
55
55
|
}
|
56
56
|
|
57
57
|
if (platform === 'win32' || platform === 'win64') {
|
58
|
-
// use
|
58
|
+
// use brighter versions of these colors
|
59
59
|
color.red = color.redBright
|
60
60
|
color.green = color.greenBright
|
61
61
|
color.yellow = color.yellowBright
|
package/code/data-map.js
CHANGED
@@ -116,7 +116,7 @@ Details on each item of the read buffer provided by node-hid for the Logitech G2
|
|
116
116
|
//-----------
|
117
117
|
function dataMap(dataDiffPositions, data, memory) {
|
118
118
|
/*
|
119
|
-
Figure out what has changed since the last event and call
|
119
|
+
Figure out what has changed since the last event and call relevant functions to translate those changes to a memory object.
|
120
120
|
@param {Object} dataDiffPositions An array.
|
121
121
|
@param {Buffer} data Buffer data from a node-hid event.
|
122
122
|
@param {Object} memory Memory object to modify.
|
package/code/index.js
CHANGED
@@ -259,7 +259,7 @@ function userOptions(opt) {
|
|
259
259
|
//----------------
|
260
260
|
function leds(setting) {
|
261
261
|
/*
|
262
|
-
Control the shift indicator LEDs using a variety of
|
262
|
+
Control the shift indicator LEDs using a variety of convenience methods.
|
263
263
|
@param {*} setting String, Number, or Array setting. Optional. See API documentation for more info.
|
264
264
|
*/
|
265
265
|
|
@@ -393,7 +393,7 @@ function forceConstant(number) {
|
|
393
393
|
|
394
394
|
function forceFriction(number) {
|
395
395
|
/*
|
396
|
-
Set or disable the
|
396
|
+
Set or disable the amount of friction present when turning the wheel.
|
397
397
|
@param {Number} number Number between 0 and 1. Optional.
|
398
398
|
*/
|
399
399
|
if (typeof number === 'undefined') number = 0
|
package/docs/api.md
CHANGED
@@ -113,7 +113,7 @@ Not enough events for you? Try subscribing to `all`, `changes`, or `data` for ev
|
|
113
113
|
|
114
114
|
### event map
|
115
115
|
|
116
|
-
[![Event Map](https://raw.github.com/nightmode/logitech-g27/
|
116
|
+
[![Event Map](https://raw.github.com/nightmode/logitech-g27/main/images/event-map.png)](https://raw.github.com/nightmode/logitech-g27/main/images/event-map.png)
|
117
117
|
|
118
118
|
### on
|
119
119
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "logitech-g27",
|
3
3
|
"description": "Logitech G27 Racing Wheel for Node",
|
4
|
-
"version": "1.2.
|
4
|
+
"version": "1.2.1",
|
5
5
|
"author": "Kai Nightmode",
|
6
6
|
"dependencies": {
|
7
7
|
"node-hid": "2.1.1"
|
@@ -10,8 +10,8 @@
|
|
10
10
|
"node": ">=8"
|
11
11
|
},
|
12
12
|
"funding": {
|
13
|
-
"type": "
|
14
|
-
"url": "https://
|
13
|
+
"type": "individual",
|
14
|
+
"url": "https://ko-fi.com/kai_nightmode"
|
15
15
|
},
|
16
16
|
"keywords": [
|
17
17
|
"logitech",
|