Git Product home page Git Product logo

joystick-module's Introduction

Joystick-Module

A joystick module for GMod, originally made by NightEagle

The original facepunch thread

Installation

Manually

Merge the addons and lua directories from this repo into your garrysmod directory.

Automatically

Windows:

  1. Clone the repository inside ..\garrysmod\addons.
  2. Execute the install.bat installation script.
  3. Delete the cloned repository manually!

Linux:

  1. Clone the repository inside ../garrysmod/addons.
  2. Open the cloned repository folder in the terminal.
  3. Execute sudo chmod +x install.sh.
  4. Execute the ./install.sh installation script.
  5. Delete the cloned repository by answering Y/y to the terminal prompt.

joystick-module's People

Contributors

dangerousones avatar dvdvideo1234 avatar mattjeanes avatar thegrb93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

joystick-module's Issues

Force feedback support

So far this module only grabs input from all axes/buttons of the controller. What about adding force feedback support to the module? It's possible to determine if the input device supports force feedback along with all the supported effects, as well as to generate the actual force feedback effect. This could allow the user to get the idea on how the vehicle behaves while driving.

Long joystick names are overlapping with the longest possible UID identifiers

Hello, just what it says

image

I actually tried to fix that by drawing the joystick name at the bottom right corner, but this frame is some nightmare to support I see, ( especially local transBind = function(reg) ) as it contains these ... 38+10+128+5+18 if you touch here, some place else stops working ( Increasing 50*n to 65*n without adjusting the frame size and math.floor((m.y-7+2.5)/50) for example responsible for selecting/mrking in green the hovered joystick outputs )

image

You can find my attempt here: joyconfig_new.txt

No joysticks detected

Everything worked fine at first. The second time I played my configurations werent saved so I re-configured and used the command to save after that my controller wont get picked up by the module and I see it says no joysticks found.

Where do I put the SRC folder?

I feel like have put it in the wrong place as I am getting

Joystick module is not loaded!

error when I type joyconfig or choose it in wire.

I have just put it into /common/GarrysMod/garrysmod

confusion

what does it mean copy the repository? sorry if i sound stupid i am

Ulib breaks it?

[ULib] addons/joystick/lua/autorun/client/joyconfig.lua:1532: attempt to index global 'joynet' (a nil value)

  1. menuclosed - addons/joystick/lua/autorun/client/joyconfig.lua:1532
  2. fn - addons/joystick/lua/autorun/client/joyconfig.lua:1537
    3. unknown - lua/ulib/shared/hook.lua:109

joystick module is not installed

I try install it. I follow instruction,but nothing. I use steam version garry's mod, and I use linux. I clone repo in addons folder, run command "chmod +x install.sh" and start install.sh. start game, and try use FPV drone addon. but nothing. module don't work

Getting corrupted data

For some reason many buttons are being detected as POVs and their values are powers of 2 when pressed. I think something fucky is going on with direct input.

Linux support planned ?

Hello, I can see in main.cpp that it uses windows.h which is not available on linux. I suppose linux is not implemented.
Does linux support is planned?

it works and doesnt work

So it seems like it works. I can open joystick configuration and everything for WAC aircraft, bind controls ect, but when i get in a heli, nothing works except mouse flying and stuff. do i gotta active something somewhere so that WAC aircraft will use the joystick controls?

Not working on Linux

Forgive me if I'm doing something wrong here.
I've installed the module in garrysmod/lua/bin and the addon correctly, however when I type in joyconfig in console it just throws command not found back at me. Does this addon not work on Linux?
The addon is properly installed on the server and players are using it fine, too.

How to set up a joystick?

Does not want to look up and down, only right and left. And on the WAC addon, the plane does not take off on the movement of the stick up and down. Device joystick for aircraft

Save Configurations

I set up my controller binds but is there a way to save them?
I restarted my game and the configuration was gone.

problem with joystick

when i try to click joystick config in the joystick menu, nothing happens

PLEASE HELP!

Multiplayer issue on non-dedicated servers

When I try to use this with Peer To Peer/Local Servers the game only lets the host actually use it, i was testing this with my two computers so I know that both are installed properly

Joystick module not loaded!

I think i installed it incorrectly. Im really struggling to get this to work, if you could help that would be great! Thanks

Couldn't include file 'includes\modules\joystick.lua (File not found)

Hello,
i've done installation as what is said in instructions, but it still gives me those errors:

Couldn't include file 'includes\modules\joystick.lua (File not found)
(@addons/joystick/lua/autorun/client/joystick.lua (line 63))

[ERROR] addons/joystick/lua/autorun/client/joystick.lua:63: Module not found!
1. require - [C]:-1
2. unknown - addons/joystick/lua/autorun/client/joystick.lua:63

Multiplayer

Whenever me and my friend try to drive, it behaves very strange. First, the clients can only drive with the steering wheel, when the host is in a vehicle at the moment. Second, sometimes it completely stops working for the client.
Is there any server-side expansion, what I haven't found yet, or it's not (going to) support it at all?

Thank you in advance!

XBox 360 Gamepad RT and LT (Z axis)

Hello there,

I dont know if this is an issue but the gamepad Right and Left Triger are combined in the Z axis wich makes em pretty much useless... If you use both like one for throttle and the other for brake, you will get problems to find out what exactly is happening.
If its possible it would be nice to have them on seperated axis. If there is an easyer way to get the current state of both Triggers i would go for that but i was not able to think of any yet.

Best regards, Evil 128

steering wheel causes player's camera to turn fast with it

hello, i run a server with this module installed, and a player is facing a issue with his steering wheel where if he turns the steering wheel all the way it moves the camera. is there a way to disable/reconfigure this?

the server in question is steam://connect/209.126.12.232:27018 incase its a problem with the gamemode/plugins i have or his steering wheel.

Module not found error

ive been getting an error
Couldn't include file 'includes\modules\joystick.lua' (File not found) (@addons/github_sym_joystick_module/lua/autorun/client/joystick.lua (line 66))

[ERROR] addons/github_sym_joystick_module/lua/autorun/client/joystick.lua:66: Module not found!

  1. require - [C]:-1
  2. unknown - addons/github_sym_joystick_module/lua/autorun/client/joystick.lua:66

Couldn't include file 'includes\modules\joystick.lua' (File not found) ()

ive downloaded and added everything properly but I have no idea how to fix

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.