Jump to content


Photo

Dual Analogue controls


  • Please log in to reply
5 replies to this topic

#1 Crinkelite

Crinkelite

    Member

  • Mission Beta Tester
  • PipPip
  • 25 posts

Posted 21 May 2017 - 09:35 AM

*
POPULAR

I've been trying to implement dual analogue gamepad support for tdm for many months now.

This is my first real attempt at serious coding so the road has been difficult and slow.

 

The current state of things can be found at https://github.com/crinkelite, all changes are in the joystick branch.

It depends on SDL2

Right now, it will only work on Linux with a playstation 3 controller.

 

Please understand this is a complete amateur hack job which probably breaks every rule there is.

 

 

 

The good

---------------------------------------------------------------------------

The players view is controlled by the right analogue stick

 

Creep/Walk/run speed is controlled by the magnitude of the left stick.

 

The gamepad buttons are mapable in the bind menu (use the mouse to initiate the bind for now).

---------------------------------------------------------------------------

 

 

 

The bad

---------------------------------------------------------------------------

The cursor can be manipulated with the right analogue stick while in the menus and menu items can be activated with the R1 button.

The approach I took to this is misguided and while it's playable, It needs to be rewritten.

 

Any joystick button can be set as a shift button (IMPULSE_53), potentially allowing two bindings to be set to one button. eg. ( R2 = jump ) ( SHIFT+R2 = mantle )

The shift button can also act as a Lean modifier, when the button is held the left analogue stick switches from movement to lean control.

This allows the player to lean to the angle given by left analogue stick and the tilt given by it's delta. ( this is barely working. it's very jittery and the trigonometry is not quite correct )

--------------------------------------------------------------------------

 

 

 

The ugly

--------------------------------------------------------------------------

The game crashes if it receives too many analogue inputs while the cpu is busy.

You can avoid this by not pushing the sticks while the game is loading. 

I'm working on a fix but it will take some time.

 

Rotating frobbed items is not yet implemented.

 

The DPad East/West is somehow getting conflated with the triggers.

 

Many many other disastrous bugs.

--------------------------------------------------------------------------

 

 

 

 

I'm going grey(er) trying to get the kinks ironed out so I'm going to draw some attention to it here.

If there's any appetite for controller support maybe someone reading this can help.

Please let me know if I should provide any further information.

 

 

 

TLDR

You can (sort of) play thedarkmod with a playstation controller If you're on Linux.


Edited by Crinkelite, 21 May 2017 - 09:54 AM.

  • Springheel, Judith, Obsttorte and 2 others like this

#2 teh_saccade

teh_saccade

    Member

  • Member
  • PipPip
  • 482 posts

Posted 29 May 2017 - 04:12 PM

HERESEY!!!

(but I like lazy recliner)
(but I also hate missing headshots where I shoot across the map for the lulz).

 

Did you play T3..?
There was a similar thing with T2 a while ago:
http://ttlg.com/Foru...ead.php?t=98519

Perhaps this would help you, with the mapping of buttons and stuff (cos there are many buttons in this game...)

 

A while ago, I tried using joy2key with my ds3 on the PC for TDM but gave up because it just wasn't fast enough response for the game, awareness and movement.
Plus I kept missing those damn rope arrows because I suck at aiming with remotes - will give your software a go though:)


Edited by teh_saccade, 29 May 2017 - 04:14 PM.

  • Crinkelite and Anderson like this

#3 Crinkelite

Crinkelite

    Member

  • Mission Beta Tester
  • PipPip
  • 25 posts

Posted 05 June 2017 - 06:26 PM

Thanks teh_saccade.

 

It's not really ready to play yet, I'm going to get back to it soon to make it playable and get it working with windows and Xbox controller.

 

I did play Deadly Shadows on pc with a logitech dual analogue controller many years ago,

I was delighted with the controls but wasn't so happy with the direction the game had taken. 

 

I played The Dark Age with a program called PinnacleGameProfiler which was much better than Xpadder or Joy2key but cost €15 at the time.

I certainly got my money's worth as I managed to play many games adequately with it including STALKER, Morrowind and Doom3.

 

Anyway, I'd love to play TDM with a controller even though some here might think it sacrilegious.

I'll try to get it to an acceptable state as soon as I have the taffin time.

 

 


  • Judith and Anderson like this

#4 Anderson

Anderson

    Advanced Member

  • Member
  • PipPipPip
  • 777 posts

Posted 06 June 2017 - 05:01 AM

There's actually nothing wrong with it considering Thief Deadly Shadows went great on the old Xbox.

 

It's not an FPS after all, precision of a mouse is not a life and death matter as it would be for shooters.


  • Crinkelite likes this

 "I really perceive that vanity about which most men merely prate — the vanity of the human or temporal life. I live continually in a reverie of the future. I have no faith in human perfectibility. I think that human exertion will have no appreciable effect upon humanity. Man is now only more active — not more happy — nor more wise, than he was 6000 years ago. The result will never vary — and to suppose that it will, is to suppose that the foregone man has lived in vain — that the foregone time is but the rudiment of the future — that the myriads who have perished have not been upon equal footing with ourselves — nor are we with our posterity. I cannot agree to lose sight of man the individual, in man the mass."...

 

 

- 2 July 1844 letter to James Russell Lowell from Edgar Allan Poe.

 


#5 Judith

Judith

    Advanced Member

  • Member
  • PipPipPip
  • 547 posts

Posted 06 June 2017 - 05:10 AM

Since my X360 days, I play everything I can with X360 controller, FPP games included, so pad support would be greatly appreciated.


  • Crinkelite likes this

#6 Crinkelite

Crinkelite

    Member

  • Mission Beta Tester
  • PipPip
  • 25 posts

Posted 07 June 2017 - 09:50 AM

That's very encouraging guys. I'll get back on it ASAP.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users